Authenticated code execution via permitted H2 DDL
Published Oct 26, 2022 · Updated Apr 23, 2025
Remote code execution in affected Metabase releases allows remote authenticated users to execute server code through H2 native SQL. The native-query path passes user-supplied DDL statements to the bundled H2 Sample Database rather than rejecting them, allowing H2 DDL features to run code in the Metabase process. An account permitted to write SQL against an H2 database is required, and successful exploitation gains the privileges of the Metabase server process.
Summary
What happened
Remote code execution in affected Metabase releases allows remote authenticated users to execute server code through H2 native SQL. The native-query path passes user-supplied DDL statements to the bundled H2 Sample Database rather than rejecting them, allowing H2 DDL features to run code in the Metabase process. An account permitted to write SQL against an H2 database is required, and successful exploitation gains the privileges of the Metabase server process.
The record
- CVE
- CVE-2022-39361
- Published
- Oct 26, 2022
- Updated
- Apr 23, 2025
- Vendor
- Metabase
- Product
- Metabase
- Classifications
- CWE-20, CWE-441, T1190
- Attack vector
- network
- Privileges
- authenticated
Timeline
How it unfolded
- Oct 26, 2022CVE publishedPublication date reported by the CVE source.
- Apr 23, 2025Record 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.41.9
- Affected versionversion=>= 0.42.0, < 0.42.6
- Affected versionversion=>= 0.43.0, < 0.43.7
- Affected versionversion=>= 0.44.0, < 0.44.5
- Affected versionversion=>= 1.0.0, < 1.41.9
- Affected versionversion=>= 1.42.0, < 1.42.6
- Affected versionversion=>= 1.43.0, < 1.43.7
- Affected versionversion=>= 1.44.0, < 1.44.5
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