CVE-2021-42392
CRITICAL9.8EPSS 90.6%RCE in H2 Console
Published: 1/6/2022Modified: 4/28/2026
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 packages (4)
- Debian/h2databasefrom 0, < 1.4.197-4+deb11u1
- Debian/h2databasefrom 0, < 1.4.193-1+deb9u1
- Debian/h2databasefrom 0, < 1.4.197-4+deb10u1
- Maven/com.h2database:h2>= 1.1.100, < 2.0.206
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | CRITICAL9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
References (11)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2021-42392
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2021-42392
- PATCHhttps://github.com/h2database/h2database
- WEBhttps://github.com/h2database/h2database/releases/tag/version-2.0.206
- WEBhttps://github.com/h2database/h2database/security/advisories/GHSA-h376-j262-vhq6
- WEBhttps://jfrog.com/blog/the-jndi-strikes-back-unauthenticated-rce-in-h2-database-console
- WEBhttps://lists.debian.org/debian-lts-announce/2022/02/msg00017.html
- WEBhttps://security.netapp.com/advisory/ntap-20220119-0001
- WEBhttps://www.debian.org/security/2022/dsa-5076
- WEBhttps://www.oracle.com/security-alerts/cpuapr2022.html
- WEBhttps://www.secpod.com/blog/log4shell-critical-remote-code-execution-vulnerability-in-h2database-console