Vulnerability · Published Jan 7, 2022 · Assigned by JFROG

CVE-2021-42392

Critical 9.8

In plain English

A critical-severity unsafe deserialization in h2 from h2database. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 83.2% (higher than 99.7% of all known vulnerabilities). Ready-made attack tooling exists: Nuclei, public proof-of-concept code. Fixed versions are available - upgrade the affected package.

Severity (CVSS NVD)9.8Critical
Exploit odds (30 days)83.2%top 0.3% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack tooling2Nuclei, Public PoC

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12h2database2.1.210-1DEBIAN-CVE-2021-42392
Debian:13h2database2.1.210-1DEBIAN-CVE-2021-42392
Debian:14h2database2.1.210-1DEBIAN-CVE-2021-42392
Mavencom.h2database:h22.0.206GHSA-h376-j262-vhq6
Ubuntu:22.04:LTSh2database2.1.210+really1.4.197-1UBUNTU-CVE-2021-42392

Affected products (as reported)

VendorProductVersions
h2database h2 1.1.000 – before *

Weakness: CWE-502

References