CVE-2021-42392H2database H2
Critical 9.8 No auth neededHigh EPSS
Follow: this CVE · H2database · H2database H2 We alert you by email or Slack (account required).
- 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.
What to do
- Apply the vendor's security update for H2.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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)
| 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 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Mitigation Third Party Advisory
- jfrog.com Exploit Technical Description Vendor Advisory
- lists.debian.org Mailing List Third Party Advisory
- security.netapp.com Third Party Advisory
- www.debian.org Third Party Advisory
- www.oracle.com Patch Third Party Advisory
- www.secpod.com