CVE-2021-42392
A public proof of concept exists; no exploitation attested.
- Published2022-01-10
- Fixed in2.0.206
- WeaknessCWE-502
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
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.
Timeline
dates in UTC- 2022-01-1014:10CVE publishedNVD
Observed activity
isMalicious corpus · updated 2026-11-03 21:37 UTCBlock these indicators
- Firewall list (EDL, text): https://api.ismalicious.com/edl/cve/CVE-2021-42392?format=txt
- CSV export: https://api.ismalicious.com/edl/cve/CVE-2021-42392?format=csv
- TAXII collection of exploited CVEs
- The EDL and CSV take an API key on the Pro plan.
Versions per branch
OSV · NVD| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 2.0 | ≥ 1.1.100, < 2.0.206 | 2.0.206 | OSV |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 9.0 | = 9.0 | no fix published | NVD |
| 10.0 | = 10.0 | no fix published | NVD |
| 11.0 | = 11.0 | no fix published | NVD |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 2.0 | ≥ 1.1.000, ≤ 2.0.204 | no fix published | NVD |
1 more product in the sources.
as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.
Distribution builds and vendor advisories
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- com.h2database:h2TuxCare:Mavenfrom 1.4.200 · fixed in 1.4.200-tuxcare.1
- com.h2database:h2TuxCare:Mavenfrom 1.3.176 · fixed in 1.3.176-tuxcare.1
- eap7-activemq-artemisRed Hat:jboss_enterprise_application_platform:7.4::el8all versions · fixed in 0:2.16.0-9.redhat_00042.1.el8eapand 15 other packages
- eap7-activemq-artemisRed Hat:jboss_enterprise_application_platform:7.4::el7all versions · fixed in 0:2.16.0-9.redhat_00042.1.el7eapand 15 other packages
- eap7-h2databaseRed Hat:jboss_enterprise_application_platform:7.4::el8all versions · fixed in 0:1.4.197-2.redhat_00004.1.el8eap
- eap7-h2databaseRed Hat:jboss_enterprise_application_platform:7.4::el7all versions · fixed in 0:1.4.197-2.redhat_00004.1.el7eap
- eap7-hal-consoleRed Hat:jboss_enterprise_application_platform:7.4::el8all versions · fixed in 0:3.3.12-1.Final_redhat_00001.1.el8eap
- eap7-hal-consoleRed Hat:jboss_enterprise_application_platform:7.4::el7all versions · fixed in 0:3.3.12-1.Final_redhat_00001.1.el7eap
39 more package ranges on OSV.dev
Vendor advisories
h2: Remote Code Execution in Console
h2 as a component of Red Hat BPM Suite 6 · h2 as a component of Red Hat build of Apicurio Registry 2 · h2 as a component of Red Hat Integration Camel Quarkus 1 · +10 more
Red Hat Security Advisory: Red Hat JBoss Enterprise Application Platform 7.3.12 security update
Red Hat Security Advisory: Red Hat Single Sign-On 7.6.1 security update
Red Hat Security Advisory: Red Hat Single Sign-On 7.6.1 security update on RHEL 9
Red Hat Security Advisory: Red Hat Single Sign-On 7.6.1 security update on RHEL 8
Red Hat Security Advisory: Red Hat Single Sign-On 7.6.1 security update on RHEL 7
7 more advisories
Fix
- Update h2 to 2.0.206
- Vendor fix Red Hat Product Security RHSA-2025:1747 · 52 productsBefore applying this update, ensure all previously released errata relevant to your system have been applied. Also, back up your existing installation, including all applications, configuration files, databases and database settings. For details on how to apply this update, refer to: https://access…
- Vendor fix Red Hat Product Security RHSA-2022:7417 · 1 productBefore applying the update, back up your existing installation, including all applications, configuration files, databases and database settings, and so on. The References section of this erratum contains a download link (you must log in to download the update).
- Vendor fix Red Hat Product Security RHSA-2022:7411 · 10 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258
- Vendor fix Red Hat Product Security RHSA-2022:6782 · 3 productsBefore applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
- Vendor fix Red Hat Product Security RHSA-2022:4919 · 2 productsBefore applying this update, back up your existing Red Hat JBoss Enterprise Application Platform installation and deployed applications. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
- Vendor fix Red Hat Product Security RHSA-2022:4922 · 1 productBefore applying this update, back up your existing Red Hat JBoss Enterprise Application Platform installation and deployed applications. The References section of this erratum contains a download link (you must log in to download the update).
Advisories and patches
- github.comMitigation
- jfrog.comVendor Advisory
- www.oracle.comPatch
Detection
read 2026-11-03 22:42 UTC- Nuclei template
- available ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof-of-concept repositories
- 2 repositories, unverifiedcybersecurityworks553/CVE-2021-42392-DetectBe-Innova/CVE-2021-42392-exploit-lab PoC-in-GitHub
- Metasploit modules
- none listed Metasploit Framework
Sources
- NVDCVSS 3.19.8read 2026-10-23
- NVDCVSS 2.010read 2026-10-23
- CNAweakness (CWE)CWE-502known since 2026-10-23
- NVDweakness (CWE)CWE-502read 2026-10-23
- FIRST EPSSEPSS score83.2 %read 2026-11-03
- PoC-in-GitHubproof of concept2read 2026-11-03
- ProjectDiscoverydetectionread 2026-11-03
- OSVaffected packages—
- GitHub AdvisoriesadvisoryCRITICAL2022-01-06
Identifiers
- EUVD-2022-0610same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- GHSA-h376-j262-vhq6same flawGitHub Advisory Database · CC-BY-4.0
- DLA-2923-1advisory covering several CVEsDebian · LicenseRef-unstated
- DSA-5076-1advisory covering several CVEsDebian · LicenseRef-unstated
- RHSA-2022:4918advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2022:4919advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2022:6782advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2022:6783advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2022:7409advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2022:7410advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2022:7411advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2025:1747advisory covering several CVEsRed Hat · CC-BY-4.0
- USN-5365-1advisory covering several CVEsUbuntu
- USN-6834-1advisory covering several CVEsUbuntu
Technical details
- CVSS v3 Vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Published
- 2022-01-10
- Last Modified
- 2026-06-17
- NVD status
- Modified
- GitHub Advisory
- GHSA-h376-j262-vhq6
Frequently asked questions
What is CVE-2021-42392?
Is CVE-2021-42392 actively exploited?
What is the CVSS score for CVE-2021-42392?
Running h2? Hear about its next vulnerability
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website lookups · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
Sources for this record
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-h376-j262-vhq6
- Nuclei templates · MIT
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- PoC-in-GitHub · CC0-1.0
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0