Pre-authentication remote code execution in Metabase
CVE-2023-38646 is a pre-authentication remote code execution vulnerability in Metabase's database-connection validation workflow. An unauthenticated attacker can obtain an instance setup token and submit a malicious H2 database connection configuration for validation. The H2 JDBC driver permits execution of attacker-controlled Java code during validation, enabling arbitrary operating-system commands with the privileges of the Metabase server process. Affected releases include Metabase Open Source before 0.46.6.1 and Metabase Enterprise before 1.46.6.1, with fixes also available for earlier release branches.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
Successful exploitation permits arbitrary command execution with the privileges of the Metabase server process, compromising the application host within that account's permissions. The vulnerability has been exploited in the wild to deploy botnet payloads and cryptocurrency miners, including DreamBus and Linuxsys. Exploitation does not require authentication.
If you can’t patch tonight, do this now.
Until patching is complete, restrict network access to Metabase to trusted users and networks, preferably through authenticated reverse-proxy or VPN controls. Prevent untrusted sources from reaching the unauthenticated setup and database-validation functionality. Monitor for anomalous setup-token retrieval, database validation activity, and child processes or outbound connections initiated by the Metabase service.
Patch, then assume compromise.
Upgrade to a fixed Metabase release. Fixed Open Source releases include 0.46.6.1, 0.45.4.1, 0.44.7.1, and 0.43.7.2; corresponding Enterprise fixes are 1.46.6.1, 1.45.4.1, 1.44.7.1, and 1.43.7.2. The primary vulnerability description identifies 0.46.6.1 and 1.46.6.1 as fixed, although some secondary accounts inconsistently describe those releases as affected.
21 exploits validated by Mallory's analysis.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
13 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.