Live threats

All CVEs / H2database

CVE-2021-42392H2database H2

Critical 9.8 No auth neededHigh EPSS

Priority
82
CVSS 3.1
9.8
EPSS
83.2%
probability of exploitation in 30 days · percentile 100
Auth required
No
Published
Jan 10, 2022
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-502
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for H2.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Maven com.h2database:h2 ≥ 1.1.100 < 2.0.206 2.0.206 —

Per OSV / GitHub Advisories (GHSA-h376-j262-vhq6). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
h2databaseh2≥ 1.1.000 ≤ 2.0.204
debiandebian_linux9.0
debiandebian_linux10.0
debiandebian_linux11.0
oraclecommunications_cloud_native_core_policy1.15.0

Official sources

References

Links published by the sources. Open them with care.