Critical severity · published Jan 10, 2022
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
9.8
CVSS
83.2%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)83.2% · higher than 100% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
CC
Communications Cloud Native Core Policy · Oracle
1.15.0 · source: NVD
DL
Debian Linux · Debian
9.0; 10.0; 11.0 · source: NVD
H2
H2 · H2database
1.1.000 through 2.0.204 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2021-42392
CVE.org
https://www.cve.org/CVERecord?id=CVE-2021-42392
Mitigation
https://github.com/h2database/h2database/security/advisories/GHSA-h376-j262-vhq6
Exploit
https://jfrog.com/blog/the-jndi-strikes-back-unauthenticated-rce-in-h2-database-console/
Mailing List
https://lists.debian.org/debian-lts-announce/2022/02/msg00017.html
Third Party Advisory
https://security.netapp.com/advisory/ntap-20220119-0001/
Third Party Advisory
https://www.debian.org/security/2022/dsa-5076
Patch
https://www.oracle.com/security-alerts/cpuapr2022.html
More from Debian Linux
10.0
CVE-2025-32433
Erlang/OTP SSH Vulnerable to Pre-Authentication RCE
10.0
CVE-2025-24201
Apple Multiple Products WebKit Out-of-Bounds Write Vulnerability
10.0
CVE-2021-44228
Apache Log4j2 JNDI features do not protect against attacker controlled LDAP and other JNDI related endpoints
10.0
CVE-2015-3306
ProFTPD Improper Access Control Vulnerability
9.8
CVE-2026-24061
GNU InetUtils Argument Injection Vulnerability
