Home / h2database / h2 / CVE-2021-42392
CVE-2021-42392: is it exploited, and which versions of h2database h2 are affected and fixed?
CVE-2021-42392 is a deserialization of untrusted data vulnerability in h2database h2. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 15:09 UTC). Affected: com.h2database:h2 from 1.1.100 before 2.0.206 (GitHub advisory GHSA-h376-j262-vhq6). Fixed in 2.0.206 (GitHub advisory GHSA-h376-j262-vhq6). Severity: Critical (9.8, CVSS 3.1, from NVD).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 15:09 UTC, CVE record November 19, 2026, 07:15 UTC and NVD November 19, 2026, 07:52 UTC.
What is CVE-2021-42392?
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 and a URL leading to a LDAP or RMI servers, causing remote code execution. This can be exploited through various attack vectors, most notably through the H2 Console which leads to unauthenticated remote code execution.
From the CVE record by JFROG, last updated August 4, 2024, 03:30 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| h2database | h2 | 1.1.000 and later |
As the CVE record by JFROG states it, last updated August 4, 2024. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| Maven | com.h2database:h2 | >= 1.1.100, < 2.0.206 | 2.0.206 | GHSA-h376-j262-vhq6 |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated January 20, 2022. Summary: RCE in H2 Console.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| h2database | h2 | from 1.1.000 through 2.0.204 | application |
| debian | debian linux | 9.0 | operating system |
| debian | debian linux | 10.0 | operating system |
| debian | debian linux | 11.0 | operating system |
| oracle | communications cloud native core policy | 1.15.0 | application |
NVD analysis (status Modified), last modified June 17, 2026, 04:09 UTC.
How severe is CVE-2021-42392?
| Score | Version | Vector | Source |
|---|---|---|---|
| Critical 9.8 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H | NVD |
| High 10.0 | CVSS 2.0 | AV:N/AC:L/Au:N/C:C/I:C/A:C | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2021-42392 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- EPSS
- 83.2% probability of exploitation activity in the next 30 days, percentile 99.7 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-502 Deserialization of Untrusted Data
Where are the vendor advisories and references?
- https://github.com/h2database/h2database/security/advisories/GHSA-h376-j262-vhq6
- [debian-lts-announce] 20220215 [SECURITY] [DLA 2923-1] h2database security update mailing-list
- DSA-5076 vendor-advisory
- https://www.oracle.com/security-alerts/cpuapr2022.html
- https://jfrog.com/blog/the-jndi-strikes-back-unauthenticated-rce-in-h2-database-console/
- https://security.netapp.com/advisory/ntap-20220119-0001/
- https://www.secpod.com/blog/log4shell-critical-remote-code-execution-vulnerability-in-h2database-console/
When was it published, and where is the official record?
- Reserved
- October 14, 2021
- Published
- January 7, 2022, 00:00 UTC
- CVE record updated
- August 4, 2024, 03:30 UTC by JFROG
- NVD
- Modified, last modified June 17, 2026, 04:09 UTC
- Last checked
- CVE list November 19, 2026, 07:15 UTC; NVD November 19, 2026, 07:52 UTC; KEV December 3, 2026, 15:09 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
What other CVEs affect h2?
- Nov 23, 2022CVE-2022-45868 H2database H2: sensitive data stored in clear text disputed
- Jan 19, 2022CVE-2022-23221 H2database H2: argument injection
- Jul 24, 2018CVE-2018-14335 H2database H2: link following (a symlink lets an attacker reach other files)
- Apr 11, 2018CVE-2018-10054 Cognitect Datomic: improper input validation disputed
Questions about CVE-2021-42392
Is CVE-2021-42392 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 15:09 UTC. FIRST's EPSS gives it a 83.2% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of h2database h2 are affected by CVE-2021-42392?
com.h2database:h2 from 1.1.100 before 2.0.206, per the GitHub advisory GHSA-h376-j262-vhq6. The tables above give every range the sources list.
Which version fixes CVE-2021-42392?
2.0.206, per the GitHub advisory GHSA-h376-j262-vhq6. Check the vendor's advisory before you rely on it.
How severe is CVE-2021-42392?
Critical (9.8, CVSS 3.1, from NVD). The severity table above shows each score with its source.
Where is the official record of CVE-2021-42392?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.