Metabase Snowflake JDBC file-write flaw enables remote code execution

Note: This data is for reference and cybersecurity research purposes only.CyStack advises users not to use this information for unlawful purposes.

What is CVE-2026-50148?

CVE-2026-50148 is a vulnerability classified as External Control of File Name or Path, affecting metabase (affected versions: >= 1.54.0, < 1.54.24, >= 1.55.0, < 1.55.24, and other affected versions). This vulnerability is rated Critical, with a CVSS score of 10. Current sources do not report this vulnerability as exploited.

Overview

Original source data

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.

Affected products and scope

The affected metabase product branches are:

  • >= 1.54.0, < 1.54.24; fixed in 1.54.24.
  • >= 1.55.0, < 1.55.24; fixed in 1.55.24.
  • >= 1.56.0, < 1.56.25; fixed in 1.56.25.
  • >= 1.57.0, < 1.57.19; fixed in 1.57.19.
  • >= 1.58.0, < 1.58.14; fixed in 1.58.14.
  • >= 1.59.0, < 1.59.10; fixed in 1.59.10.
  • >= 1.60.0, < 1.60.4; fixed in 1.60.4.

Branches or versions outside these listed ranges are not assigned a status by this record.

Technical details

This is a CWE-73 flaw involving external control of a file name or path in the Snowflake connection configuration path. The attacker-controlled input is a Snowflake connection configured to point to a server controlled by the attacker. A flaw in the Snowflake JDBC driver allows that server to cause arbitrary file writes anywhere on the Metabase host, including replacement of one of Metabase's own database drivers. When Metabase later loads the replaced driver, the attacker's code executes inside the Metabase process. Exploitation requires a user with permission to add or edit a database connection; the advisory does not identify the exact file name, path, protocol exchange, or detailed trigger for the subsequent driver load.

Exploitability

The attack reaches the Metabase database-connection configuration function and uses a Snowflake connection to an attacker-controlled server. The attacker needs a Metabase account with permission to add or edit database connections, typically an administrator-level permission. After that prerequisite is met, the advisory states that no additional user interaction is required. The supplied record does not identify a public exploit; known_exploited is unset, and the CISA-enriched data records exploitation as none. That status does not prove that abuse has never occurred outside the scope of the sources reviewed.

Technical impact

The direct technical outcome is remote code execution inside the Metabase process after the replaced database driver is loaded. The code can perform actions available to the Metabase operating-system account and deployment environment, so the final impact depends on service-account privileges, network access, and isolation controls. Possible consequences include loss of confidentiality, integrity, or availability for Metabase and related resources. The evidence does not establish full control of the host in every deployment because that depends on the process identity and system containment.

Business impact

Successful exploitation allows attacker-controlled code to run inside the Metabase process. Depending on the service account's privileges and reachable resources, this may expose or alter analytics data and configuration, affect connected services, or disrupt availability. Replacing a database driver can also cause the code to execute again when Metabase loads the driver later. The available evidence does not establish impact beyond the resources accessible to the Metabase process.

Remediation

  1. Upgrade each affected branch to its corresponding fixed release: 1.54.x to 1.54.24, 1.55.x to 1.55.24, 1.56.x to 1.56.25, 1.57.x to 1.57.19, 1.58.x to 1.58.14, 1.59.x to 1.59.10, and 1.60.x to 1.60.4.
  2. After upgrading, recheck the deployment inventory to ensure that no server remains in an affected range. The advisory says the fix bundles Metabase's first-party drivers into the main application file so they can no longer be replaced on disk through this path.
  3. Until upgrading is possible, temporarily restrict permission to add or edit database connections, especially for accounts that do not require it, and prevent configuration of Snowflake connections to untrusted endpoints where the architecture permits. This is temporary risk reduction, not a substitute for patching.
  4. If an affected server has processed a Snowflake connection to an untrusted server, treat it as potentially compromised, review the Metabase driver files for unauthorized changes, and follow incident-response procedures, including redeployment from trusted artifacts where appropriate.

Detection

  1. Inventory every Metabase deployment and compare its version with the affected branches in this record.
  2. Identify accounts and roles that can add or edit database connections, with particular attention to Snowflake connection configuration.
  3. Review connection configuration records for unexpected external Snowflake servers or endpoint changes. This is a precautionary review, not an advisory-confirmed IOC.
  4. Inspect Metabase database-driver files and compare them with trusted deployment artifacts for unexpected changes. The advisory does not provide hashes, file names, or specific log events.
  5. Where telemetry is available, review unusual outbound connections from Metabase to Snowflake endpoints and anomalous Metabase process activity after connection configuration. Absence of logs or other signs should not be treated as proof that the system is safe.
Sources (16)
Learn more

Run an in-depth assessment with complete web risk management

CyStack VulnScan continuously discovers assets, validates vulnerabilities, and helps security teams prioritize remediation across the organization.