CVE-2021-42392
Last modified
CVE-2021-42392 is a critical-severity vulnerability rated 9.8/10 on the CVSS scale. 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. EPSS estimates a 63.21% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| 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 |
References
- https://github.com/h2database/h2database/security/advisories/GHSA-h376-j262-vhq6Mitigation, 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.htmlMailing List, Third Party Advisory
- https://security.netapp.com/advisory/ntap-20220119-0001/Third Party Advisory
- https://www.debian.org/security/2022/dsa-5076Third Party Advisory
- https://www.oracle.com/security-alerts/cpuapr2022.htmlPatch, Third Party Advisory
- https://github.com/h2database/h2database/security/advisories/GHSA-h376-j262-vhq6Mitigation, 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.htmlMailing List, Third Party Advisory
- https://security.netapp.com/advisory/ntap-20220119-0001/Third Party Advisory
- https://www.debian.org/security/2022/dsa-5076Third Party Advisory
- https://www.oracle.com/security-alerts/cpuapr2022.htmlPatch, Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2021-42392?
How severe is CVE-2021-42392?
How do I fix CVE-2021-42392?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2021
- CVE-2021-42387Heap out-of-bounds read in Clickhouse's LZ4 compression code…8.1
- CVE-2021-42388Heap out-of-bounds read in Clickhouse's LZ4 compression code…8.1
- CVE-2021-42389Divide-by-zero in Clickhouse's Delta compression codec when …6.5
- CVE-2021-4239The Noise protocol implementation suffers from weakened cryp…7.5
- CVE-2021-42390Divide-by-zero in Clickhouse's DeltaDouble compression codec…6.5
- CVE-2021-42391Divide-by-zero in Clickhouse's Gorilla compression codec whe…6.5
- CVE-2021-4240A vulnerability, which was classified as problematic, was fo…5.3
- CVE-2021-4241A vulnerability, which was classified as problematic, was fo…5.3
- CVE-2021-4242A vulnerability was found in Sapido BR270n, BRC76n, GR297 an…8.8
- CVE-2021-4243Rejected reason: DO NOT USE THIS CANDIDATE NUMBER. ConsultID…
- CVE-2021-4244A vulnerability classified as problematic has been found in …6.1
- CVE-2021-4245A vulnerability classified as problematic has been found in …9.8
Are you affected by CVE-2021-42392?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
