CVEvulnerability
CVE-2021-42392
9.8 CRITICAL
Official page ↗
- Status
- Modified
- Published
- 2022-01-10
- Last modified
- 2026-06-17
- Assigner
- [email protected]
- CVSS 3.1 ([email protected])
- 9.8 CRITICAL — CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- CVSS 2.0 ([email protected])
- 10.0 HIGH — AV:N/AC:L/Au:N/C:C/I:C/A:C
- Weaknesses
- CWE-502
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 configurations
• h2database h2 (>= 1.1.000 <= 2.0.204)
• debian debian linux 9.0
• debian debian linux 10.0
• debian debian linux 11.0
• oracle communications cloud native core policy 1.15.0
Related
Weakness · CWE (1)
- CWE-502 Deserialization of Untrusted Data weakness
References
- https://github.com/h2database/h2database/security/advisories/GHSA-h376-j262-vhq6 Mitigation, Third Party Advisory
- https://jfrog.com/blog/the-jndi-strikes-back-unauthenticated-rce-in-h2-database-console/ Exploit, Technical Description, Vendor Advisory
- https://lists.debian.org/debian-lts-announce/2022/02/msg00017.html Mailing List, Third Party Advisory
- https://security.netapp.com/advisory/ntap-20220119-0001/ Third Party Advisory
- https://www.debian.org/security/2022/dsa-5076 Third Party Advisory
- https://www.oracle.com/security-alerts/cpuapr2022.html Patch, Third Party Advisory
- https://www.secpod.com/blog/log4shell-critical-remote-code-execution-vulnerability-in-h2database-console/ www.secpod.com
- https://github.com/h2database/h2database/security/advisories/GHSA-h376-j262-vhq6 Mitigation, Third Party Advisory
- https://jfrog.com/blog/the-jndi-strikes-back-unauthenticated-rce-in-h2-database-console/ Exploit, Technical Description, Vendor Advisory
- https://lists.debian.org/debian-lts-announce/2022/02/msg00017.html Mailing List, Third Party Advisory
- https://security.netapp.com/advisory/ntap-20220119-0001/ Third Party Advisory
- https://www.debian.org/security/2022/dsa-5076 Third Party Advisory
- https://www.oracle.com/security-alerts/cpuapr2022.html Patch, Third Party Advisory
- https://www.secpod.com/blog/log4shell-critical-remote-code-execution-vulnerability-in-h2database-console/ www.secpod.com