Unauthenticated code execution via H2 connection strings
Published Aug 4, 2023 · Updated Oct 17, 2024
Code injection in Metabase allows remote attackers to execute code on the server through a crafted H2 database connection string. The unauthenticated /api/setup/validate endpoint passes user-supplied H2 connection data to the embedded driver, whose connection-string features execute included code despite attempts to remove the INIT command. No account or user interaction is required, and successful execution runs with the Metabase server process's privileges.
Summary
What happened
Code injection in Metabase allows remote attackers to execute code on the server through a crafted H2 database connection string. The unauthenticated /api/setup/validate endpoint passes user-supplied H2 connection data to the embedded driver, whose connection-string features execute included code despite attempts to remove the INIT command. No account or user interaction is required, and successful execution runs with the Metabase server process's privileges.
The record
- CVE
- CVE-2023-37470
- Published
- Aug 4, 2023
- Updated
- Oct 17, 2024
- Vendor
- Metabase
- Product
- Metabase
- Classifications
- CWE-94, T1190
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Aug 4, 2023CVE publishedPublication date reported by the CVE source.
- Oct 17, 2024Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=< 0.43.7.3
- Affected versionversion=>= 0.44.0.0, < 0.44.7.3
- Affected versionversion=>= 0.45.0.0, < 0.45.4.3
- Affected versionversion=>= 0.46.0.0, < 0.46.6.4
- Affected versionversion=>= 1.0.0, < 1.43.7.3
- Affected versionversion=>= 1.44.0.0, < 1.44.7.3
- Affected versionversion=>= 1.45.0.0, < 1.45.4.3
- Affected versionversion=>= 1.46.0.0, < 1.46.6.4
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo