Deserialization in H2database H2
CVE-2021-42392
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.
Vulnerability class: Insecure Deserialization
EPSS: 0.632 (99.1th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
Affected products
- H2database H2 — versions 1.1.000
- Oracle Communications_cloud_native_core_policy — versions 1.15.0
- Debian Debian_linux — versions 9.0, 10.0, 11.0
Weakness classification (CWE)
Public proof-of-concept exploits
References
- reefs@jfrog.com (Third Party Advisory, Mitigation)
- reefs@jfrog.com (mailing-list, Mailing List, Third Party Advisory)
- reefs@jfrog.com (vendor-advisory, Third Party Advisory)
- reefs@jfrog.com (Patch, Third Party Advisory)
- reefs@jfrog.com (Technical Description, Exploit, Vendor Advisory)
- reefs@jfrog.com (Third Party Advisory)
- reefs@jfrog.com
Frequently asked questions
- What is CVE-2021-42392?
- CVE-2021-42392 is a critical-severity vulnerability in H2database H2, classified under Deserialization of Untrusted Data. CVSS score: 9.8/10. Published 2022-01-10.
- How severe is CVE-2021-42392?
- Critical severity. CVSS v3 base score is 9.8 out of 10.
- Is CVE-2021-42392 known to be exploited?
- 40 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.