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?
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
