CVE-2021-42392
CRITICAL 9.8EPSS 83.2%
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
- h2database · h2
- CVSS v3.1 NVD
- 9.8 CRITICAL
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - CVSS v2.0 NVD
- 10.0 HIGH
AV:N/AC:L/Au:N/C:C/I:C/A:C - EPSS
- 83.18% chance of exploitation in the next 30 days, 100th percentile
- Nuclei
- critical · CWE-502
- Published
- 2022-01-07
- Updated
- 2024-08-04
Proof-of-concept exploits (1)
- Be-Innova/CVE-2021-42392-exploit-lab0★ · 2025-05-08
Nuclei templates (1)
Vulhub environments (1)
Security advisories
- https://jfrog.com/blog/the-jndi-strikes-back-unauthenticated-rce-in-h2-database-console
- h2database/h2database/security/advisories/GHSA-h376-j262-vhq6
- https://lists.debian.org/debian-lts-announce/2022/02/msg00017.html
- https://security.netapp.com/advisory/ntap-20220119-0001
- https://www.debian.org/security/2022/dsa-5076
- https://www.oracle.com/security-alerts/cpuapr2022.html
- advisories/GHSA-h376-j262-vhq6