CVEfocus › CVE database › CVE-2021-42392

CVE-2021-42392

CVSS 9.8 CriticalEPSS 83.2% (in the top 1% of all CVEs)Published 2022-01-07Updated 2024-08-04Assigner: JFROG

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.

CWE-502

What to do

Likely to be exploited: EPSS gives a 83% chance of exploitation in the next 30 days. Treat it as urgent if you run an affected version.

Fixed builds are available from Debian, Maven, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

6Fixed
2Fix pending
1Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 24.04h2databaseNot affected
vulnerable_code_not_present
Ubuntu 22.04h2databaseFixed2.1.210+really1.4.197-1UBUNTU-CVE-2021-42392
Ubuntu 20.04h2databaseFixed1.4.197-4+deb10u1build0.20.04.1UBUNTU-CVE-2021-42392
Ubuntu 18.04h2databaseFix pending1.4.196-2ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2021-42392
Ubuntu 16.04h2databaseFix pending1.4.191-1ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2021-42392
Debian 14h2databaseFixed2.1.210-1DEBIAN-CVE-2021-42392
Debian 13h2databaseFixed2.1.210-1DEBIAN-CVE-2021-42392
Debian 12h2databaseFixed2.1.210-1DEBIAN-CVE-2021-42392
Maven librarycom.h2database:h2Fixed2.0.206GHSA-h376-j262-vhq6

What the vendor says

As published in the CVE record by JFROG, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.