
CVE catalog
CVE-2021-42392
h2database: CVE-2021-42392
- Severity
- Critical · CVSS 9.8
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 83.18% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | h2database | sid | 2.5.252-2 | fixed |
| Debian | h2database | forky | 2.5.252-2 | fixed |
| Debian | h2database | trixie | 2.2.220-1 | fixed |
| Debian | h2database | bookworm | 2.1.214-1 | fixed |
| Ubuntu | h2database | pro | 1.4.196-1 | vulnerable |
| Ubuntu | h2database | pro | 1.4.196-2 | vulnerable |
| Ubuntu | h2database | pro | 1.4.196-2ubuntu0.1~esm1 | fixed |
| Ubuntu | h2database | 20.04 | 1.4.197-4 | vulnerable |
| Ubuntu | h2database | 20.04 | 1.4.197-4+deb10u1build0.20.04.1 | fixed |
| Ubuntu | h2database | pro | 1.4.196-1 | vulnerable |
| Ubuntu | h2database | pro | 1.4.196-2 | vulnerable |
| Ubuntu | h2database | pro | 1.4.196-2ubuntu0.1~esm1 | fixed |
| Ubuntu | h2database | 20.04 | 1.4.197-4 | vulnerable |
| Ubuntu | h2database | 20.04 | 1.4.197-4+deb10u1build0.20.04.1 | fixed |
| Ubuntu | h2database | 22.04 | 1.4.197-4 | vulnerable |
| Ubuntu | h2database | 22.04 | 2.1.210-1 | vulnerable |
| Ubuntu | h2database | 22.04 | 2.1.210+really1.4.197-1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | h2database | source | sid | 2.1.210-1 | not yet assigned | Not reported | [1003894] |
| Debian | h2database | source | forky | 2.1.210-1 | not yet assigned | Not reported | [1003894] |
| Debian | h2database | source | trixie | 2.1.210-1 | not yet assigned | Not reported | [1003894] |
| Debian | h2database | source | bookworm | 2.1.210-1 | not yet assigned | Not reported | [1003894] |
| Ubuntu | h2database | deb | pro | 1.4.196-2ubuntu0.1~esm1 | Not reported | USN-6834-1 | Not reported |
| Ubuntu | h2database | deb | 20.04 | 1.4.197-4+deb10u1build0.20.04.1 | Not reported | USN-5365-1 | Not reported |
| Ubuntu | h2database | deb | pro | 1.4.196-2ubuntu0.1~esm1 | Not reported | UBUNTU-CVE-2021-42392 | Not reported |
| Ubuntu | h2database | deb | 20.04 | 1.4.197-4+deb10u1build0.20.04.1 | Not reported | UBUNTU-CVE-2021-42392 | Not reported |
| Ubuntu | h2database | deb | 22.04 | 2.1.210+really1.4.197-1 | Not reported | UBUNTU-CVE-2021-42392 | Not reported |
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [libh2-java]Fixed
Source package: [h2database]
Details (2)
2.1.214-1· all · bookwormFixed · Fixed:
2.1.210-1dsa · h2database · debian · bookworm; dsa · h2database · debian · 12
2.1.214-1· all · bookwormFixed · Fixed:
2.1.210-1dsa · h2database · debian · bookworm; dsa · h2database · debian · 12
- [libh2-java-doc]Fixed
Source package: [h2database]
Details (2)
2.1.214-1· all · bookwormFixed · Fixed:
2.1.210-1dsa · h2database · debian · bookworm; dsa · h2database · debian · 12
2.1.214-1· all · bookwormFixed · Fixed:
2.1.210-1dsa · h2database · debian · bookworm; dsa · h2database · debian · 12
[Debian 13 (Trixie)]
- [libh2-java]Fixed
Source package: [h2database]
Details (2)
2.2.220-1· all · trixieFixed · Fixed:
2.1.210-1dsa · h2database · debian · 13
2.2.220-1· all · trixieFixed · Fixed:
2.1.210-1dsa · h2database · debian · 13
Observed:
References
- [https://osv.dev/vulnerability/DEBIAN-CVE-2021-42392]
- [https://osv.dev/vulnerability/DLA-2923-1]
- [https://osv.dev/vulnerability/DSA-5076-1]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2021-42392]
- [https://osv.dev/vulnerability/USN-5365-1]
- [https://osv.dev/vulnerability/USN-6834-1]
- [https://security-tracker.debian.org/tracker/CVE-2021-42392]
- [https://security.access.redhat.com/data/csaf/v2/vex/2021/cve-2021-42392.json]
- [https://wid.cert-bund.de/.well-known/csaf/white/2022/wid-sec-w-2022-0098.json]
[CERT-Bund public advisories] · [Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX]