# CVE-2026-50148: Metabase: Remote Code Execution via Snowflake JDBC Driver Arbitrary File Write

> An attacker with database connection permissions can achieve remote code execution on the Metabase server by exploiting a file write flaw in the Snowflake JDBC driver.

- **Severity:** Critical 10.0 (`CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** No
- **Published:** 15 Jul 2026
- **Updated:** 20 Jul 2026

## What is CVE-2026-50148?

CVE-2026-50148 is a critical path traversal vulnerability in metabase, published on 15 Jul 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

Metabase is an open-source business intelligence and embedded analytics tool. From 1.54.0 until 1.54.24, 1.55.24, 1.56.25, 1.57.19, 1.58.14, 1.59.10, and 1.60.4, a Metabase user with permission to add or edit a database connection can achieve remote code execution on the Metabase server by configuring a Snowflake connection to an attacker-controlled server, because a flaw in the Snowflake JDBC driver can write arbitrary files anywhere on the Metabase host, including replacing one of Metabase's own database driver files that later executes inside the Metabase process. This issue is fixed in versions 1.54.24, 1.55.24, 1.56.25, 1.57.19, 1.58.14, 1.59.10, and 1.60.4.

Weakness: CWE-73 (External Control of File Name or Path)

## Which versions are affected by CVE-2026-50148?

It affects 1 product.


Products: Metabase Metabase.

## How do I fix CVE-2026-50148?

No fix has been published for CVE-2026-50148 yet. Limit exposure of the affected software until one is available.

## Is CVE-2026-50148 being exploited?

There is no known exploitation of CVE-2026-50148 in the wild and no public exploit code.

## Other vulnerabilities in metabase

- [CVE-2026-72898](https://insights.sbomify.com/CVE-2026-72898/): Metabase SQL Injection (critical 10.0, exploited in the wild)
- [CVE-2021-41277](https://insights.sbomify.com/CVE-2021-41277/): Metabase GeoJSON API Local File Inclusion (critical 10.0, exploited in the wild)
- [CVE-2023-37470](https://insights.sbomify.com/CVE-2023-37470/): Metabase vulnerable to remote code execution via POST /api/setup/validate API endpoint (critical 10.0)
- [CVE-2026-59827](https://insights.sbomify.com/CVE-2026-59827/): Metabase: Unsafe Deserialization of H2 Query Results (critical 9.9)
- [CVE-2023-38646](https://insights.sbomify.com/CVE-2023-38646/): Command injection in n/a (critical 9.8)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-50148 and fix it if it is affected.

What it is: CVE-2026-50148 is a critical path traversal vulnerability in metabase, published on 15 Jul 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2026-50148 in the wild and no public exploit code.

Affected product: metabase. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-50148/ (Markdown: https://insights.sbomify.com/CVE-2026-50148/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-50148
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-50148
- OSV: https://osv.dev/vulnerability/CVE-2026-50148

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-50148/
Summaries are generated and may contain mistakes; the official description above is the record.
