CVE-2026-103928

Metabase: Arbitrary File Read/Write via Unsafe H2 Built-in Functions

Published Oct 13, 2026 CVSS 4.0 · 9.3 Critical EPSS < 1% KEV · Not listed
Description
Metabase is an open source business intelligence and analytics platform. From 1.55.0 until 1.58.16, 1.59.13, 1.60.9, and 1.61.4, native queries and actions against an H2 data source are passed through without restricting host-facing built-in functions. A user authorized to run native queries or actions can invoke FILE_READ, FILE_WRITE, CSVREAD, CSVWRITE, or LINK_SCHEMA to read or write arbitrary files on the Metabase server or link other databases. The default sample database uses H2, so the vulnerable surface is exposed by default. This issue is fixed in versions 1.58.16, 1.59.13, 1.60.9, and 1.61.4.

Analysis

AI-generated

Technical impact

Metabase is vulnerable when native queries or actions are executed against an H2 data source because the application forwards these queries without restricting H2 built‑in functions, which is a manifestation of CWE-73 (External Control of File Name or Path). An authorized user can invoke FILE_READ, FILE_WRITE, CSVREAD, CSVWRITE, or LINK_SCHEMA, giving the ability to read or write any file on the Metabase server. If an attacker writes an executable or modifies configuration files, this can lead to full remote code execution and compromise the host machine.

Affected Systems

The affected product is Metabase as supplied by the Metabase community. Versions 1.55.0 through 1.58.16, 1.59.13, 1.60.9, and 1.61.4 are vulnerable. Because the default sample database uses H2, the vulnerable surface is exposed out of the box unless the sample database is removed or disabled.

Risk and Exploitability

The CVSS score is 9.3, indicating critical severity. EPSS is not available, so the likelihood of exploitation cannot be quantified from the public data, but the vulnerability is listed as not in the KEV catalog. The attack vector is inferred: an adversary that has the ability to run native queries or actions—usually via an authenticated account with appropriate privileges—can supply specially crafted H2 statements that call the unsafe functions. Once those statements are executed, the attacker can read or write arbitrary files, potentially executing malicious code on the host system. No exploit code is publicly available, but the vulnerability is technically straightforward for privileged users to exploit.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update Metabase to version 1.58.16 or later, which removes the unrestricted built‑in function usage in native queries and actions.
  • Restrict the ability to run native queries or actions to a minimum set of trusted administrators; remove or limit such privileges for all other users.
  • Consider disabling or removing the default H2 sample database to reduce exposure; if the sample database must remain, ensure it is isolated or that its connection URL does not point to a local file system that can be accessed via H2 functions.

Generated by OpenCVE AI on October 13, 2026 at 19:44 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Metabase
Metabase metabase
Vendors & Products Metabase
Metabase metabase
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description Metabase is an open source business intelligence and analytics platform. From 1.55.0 until 1.58.16, 1.59.13, 1.60.9, and 1.61.4, native queries and actions against an H2 data source are passed through without restricting host-facing built-in functions. A user authorized to run native queries or actions can invoke FILE_READ, FILE_WRITE, CSVREAD, CSVWRITE, or LINK_SCHEMA to read or write arbitrary files on the Metabase server or link other databases. The default sample database uses H2, so the vulnerable surface is exposed by default. This issue is fixed in versions 1.58.16, 1.59.13, 1.60.9, and 1.61.4.
Title Metabase: Arbitrary File Read/Write via Unsafe H2 Built-in Functions
Weaknesses CWE-73
References
Metrics cvssV4_0

{'score': 9.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-73

    External Control of File Name or Path

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Oct 13, 2026, 4:08 PM
Reserved
Oct 1, 2026, 2:20 PM
Status
Awaiting Analysis
Published
Oct 13, 2026, 4:17 PM
Modified
Oct 16, 2026, 4:00 PM