CVE-2021-42392
CriticalThe org.h2.util.JdbcUtils.getConnection method of the H2 database takes as parameters the class name of the driver and URL of the database.
Published Jan 10, 2022 · Updated Aug 4, 2026 · Also known as DEBIAN-CVE-2021-42392, DLA-2923-1, DSA-5076-1, GHSA-h376-j262-vhq6, TR-22-0021, UBUNTU-CVE-2021-42392, USN-5365-1, USN-6834-1
Key Facts
Patch immediately- CVE-2021-42392 is a critical-severity vulnerability (CVSS 9.8 v3.1) affecting H2 (H2database), Communications Cloud Native Core Policy (Oracle), Debian Linux and 18 more products.
- It is not listed in any known-exploited vulnerabilities catalog. No public exploit code is known.
- EPSS estimates a 83% probability of exploitation in the next 30 days.
- Fixed versions are available, including com.h2database:h2 2.0.206, eap7-h2database 0:1.4.197-2.redhat_00004.1.el7eap, eap7-h2database 0:1.4.197-2.redhat_00004.1.el8eap.
- Brandefense priority: patch immediately, because it is very likely to be exploited soon.
CVSS v3.1
9.8
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS (30-day exploit likelihood)
83%
Higher than 99.6% of all scored CVEs
Exploited in the wild
No known
Not in a known-exploited catalog
Public exploit code
None known
Get the full CVE-2021-42392 brief as a PDF
Every affected product and fixed release, exploitation status and a first 24 hours response checklist, emailed within minutes.
Description
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.
Affected Products
44 affected entries in total| Product | Affected versions | Fixed in |
|---|---|---|
| H2H2database | >= 1.1.000 | 2.0.204 |
| Communications Cloud Native Core PolicyOracle | 1.15.0 | n/a |
| Debian LinuxDebian | 10.0, 11.0, 9.0 | n/a |
| h2databasedebian | See advisory | 1.4.197-4+deb11u1 |
| com.h2database:h2maven | >= 1.1.100 | 2.0.206 |
Patched Releases
com.h2database:h2
2.0.206
eap7-h2database
0:1.4.197-2.redhat_00004.1.el7eap, 0:1.4.197-2.redhat_00004.1.el8eap
eap7-hal-console
0:3.2.17-1.Final_redhat_00001.1.el7eap
eap7-jackson-annotations
0:2.10.4-2.redhat_00004.1.el7eap
eap7-jackson-core
0:2.10.4-2.redhat_00004.1.el7eap
eap7-jackson-databind
0:2.10.4-4.redhat_00004.1.el7eap
eap7-jackson-jaxrs-providers
0:2.10.4-2.redhat_00004.1.el7eap
eap7-jackson-modules-base
0:2.10.4-4.redhat_00004.1.el7eap
eap7-jackson-modules-java8
0:2.10.4-2.redhat_00004.1.el7eap
eap7-jettison
0:1.5.2-2.redhat_00002.1.el7eap
eap7-netty
0:4.1.63-4.Final_redhat_00002.1.el7eap
eap7-resteasy
0:3.11.6-1.Final_redhat_00001.1.el7eap
eap7-snakeyaml
0:1.33.0-1.SP1_redhat_00001.1.el7eap
eap7-wildfly
0:7.3.12-3.GA_redhat_00002.1.el7eap
h2database
1.4.191-1ubuntu0.1~esm1, 1.4.193-1+deb9u1, 1.4.196-2ubuntu0.1~esm1, 1.4.197-4+deb10u1, 1.4.197-4+deb10u1build0.20.04.1, 1.4.197-4+deb11u1, 2.1.210-1, 2.1.210+really1.4.197-1
H2
<=2.0.204
rh-sso7
0:1-5.el9sso
rh-sso7-javapackages-tools
0:6.0.0-7.el9sso
rh-sso7-keycloak
0:15.0.8-1.redhat_00001.1.el8sso, 0:18.0.3-1.redhat_00001.1.el7sso, 0:18.0.3-1.redhat_00001.1.el9sso
Timeline
Publicly disclosed
Jan 10, 2022
Last updated
Aug 4, 2026
Weakness Type
- CWE-502 Deserialization of Untrusted Data
References
- advisoryRHSA-2022:1013
- advisoryRHSA-2022:4918
- advisoryRHSA-2022:4919
- advisoryRHSA-2022:4922
- advisoryRHSA-2022:6782
FAQ
Common Questions.
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.
Affected: H2 (H2database) versions >= 1.1.000; Communications Cloud Native Core Policy (Oracle) versions 1.15.0; Debian Linux versions 10.0, 11.0, 9.0, among others. The full list is in the CVE brief.
It is not listed in any known-exploited vulnerabilities catalog.
No, it is not currently listed in the CISA Known Exploited Vulnerabilities catalog.
No public exploit code is known.
Fixed versions are available, including com.h2database:h2 2.0.206, eap7-h2database 0:1.4.197-2.redhat_00004.1.el7eap, eap7-h2database 0:1.4.197-2.redhat_00004.1.el8eap.
Brandefense priority: patch immediately, because it is very likely to be exploited soon.
Is CVE-2021-42392 Running On Your Attack Surface?
Brandefense maps vulnerabilities like this one to your internet-facing assets and tells you exactly where to patch.
Request A Demo