H2database is an embedded relational database engine widely integrated into Java applications and frameworks, where its lightweight footprint and permissive default configurations create a concentrated attack surface. Vulnerabilities affecting the product skew strongly toward critical severity and frequently acquire public exploit code, with the recurrent weakness classes—including cleartext storage of sensitive information, unsafe deserialization, improper input validation, link-following flaws, and argument injection—reflecting both the parser complexity of SQL processing and the risky defaults endemic to embedded database engines. Defenders should treat H2 instances as high-priority targets, particularly where exposed to untrusted input or where application code dynamically constructs database commands; current severity and exploitation counts are shown alongside this summary.
The number and severity of CVEs published that impact products developed by H2database over time
Signals from CVEs in this vendor scope (6 CVEs).
6 CVEs · Highest risk first
| CVE | Published | CVSS | Risk | KEV | Exploit |
|---|---|---|---|---|---|
CVE-2021-42392CRITICAL The org.h2.util.JdbcUtils.getConnection method of the H2 database takes as parameters the class name of the driver and URL of the database. An attacker may pass a JNDI driver name | Jan 10, 2022 | 9.8 | 68 | NO | NO |
CVE-2022-23221CRITICAL H2 Console before 2.1.210 allows remote attackers to execute arbitrary code via a jdbc:h2:mem JDBC URL containing the IGNORE_UNKNOWN_SETTINGS=TRUE;FORBID_CREATION=FALSE;INIT=RUNSCR | Jan 19, 2022 | 9.8 | 67 | NO | NO |
CVE-2018-10054HIGH H2 1.4.197, as used in Datomic before 0.9.5697 and other products, allows remote code execution because CREATE ALIAS can execute arbitrary Java code. NOTE: the vendor's position is | Apr 11, 2018 | 8.8 | 58 | NO | YES |
CVE-2018-14335MEDIUM An issue was discovered in H2 1.4.197. Insecure handling of permissions in the backup function allows attackers to read sensitive files (outside of their permissions) via a symlink | Jul 24, 2018 | 6.5 | 39 | NO | YES |
CVE-2021-23463CRITICAL The package com.h2database:h2 from 1.4.198 and before 2.0.202 are vulnerable to XML External Entity (XXE) Injection via the org.h2.jdbc.JdbcSQLXML class object, when it receives pa | Dec 10, 2021 | 9.1 | 30 | NO | NO |
CVE-2022-45868HIGH The web-based admin console in H2 Database Engine before 2.2.220 can be started via the CLI with the argument -webAdminPassword, which allows the user to specify the password in cl | Nov 23, 2022 | 7.8 | 26 | NO | NO |
Signals from CVEs in this vendor scope (6 CVEs).
An overview of all social media posts that mention a CVE ID that affects a product developed by H2database.
Media articles that mention a CVE ID that affects a product developed by H2database — matched by CVE ID, not by vendor name.