CVE-2021-42392
CRITICAL 9.8CVSS 3.1RCE in H2 Console
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.
- Published
- 10 Jan 2022
- Last modified
- 8 Jul 2026
- Assigned by
- reefs@jfrog.com
- NVD status
- Modified
- Weakness
- CWE-502
- Also known as
- GHSA-h376-j262-vhq6
- Sources
- NVDJSONOSV GHSA-h376-j262-vhq6JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | HIGH 10.0 | AV:N/AC:L/Au:N/C:C/I:C/A:C |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | h2database | h2cpe:2.3:a:h2database:h2:*:*:*:*:*:*:*:* |
>= 1.1.000, <= 2.0.204 | |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* |
= 9.0 | |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* |
= 10.0 | |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:* |
= 11.0 | |
| NVD | oracle | communications_cloud_native_core_policycpe:2.3:a:oracle:communications_cloud_native_core_policy:1.15.0:*:*:*:*:*:*:* |
= 1.15.0 | |
| OSV | Maven | com.h2database:h2 | >= 1.1.100, < 2.0.206 | 2.0.206 |
References
- https://github.com/h2database/h2database/security/advisories/GHSA-h376-j262-vhq6 · Mitigation, Third Party Advisory, WEB
- https://jfrog.com/blog/the-jndi-strikes-back-unauthenticated-rce-in-h2-database-console/ · Exploit, Technical Description, Vendor Advisory, WEB
- https://lists.debian.org/debian-lts-announce/2022/02/msg00017.html · Mailing List, Third Party Advisory, WEB
- https://security.netapp.com/advisory/ntap-20220119-0001/ · Third Party Advisory, WEB
- https://www.debian.org/security/2022/dsa-5076 · Third Party Advisory, WEB
- https://www.oracle.com/security-alerts/cpuapr2022.html · Patch, Third Party Advisory, WEB
- https://www.secpod.com/blog/log4shell-critical-remote-code-execution-vulnerability-in-h2database-console/ · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-42392 · ADVISORY
- https://github.com/h2database/h2database · PACKAGE
- https://github.com/h2database/h2database/releases/tag/version-2.0.206 · WEB
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 10 Jan 2022)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 6 Jan 2022)