cve.bz

CVE-2021-42392 Deserialization of Untrusted Data

9.8 criticalExploit referenceEPSS 83%Fix available

Critical (9.8). EPSS 83% estimated probability of exploitation activity in the next 30 days. Fixed in com.h2database:h2 2.0.206.

On this page
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.

Severity

CVSS 3.1

9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
83% (unchanged from 83% a week ago; 83% 30 days ago) estimated probability of exploitation activity in the next 30 days; 100th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-502 Deserialization of Untrusted Data
OWASP Top 10
A08:2025 Software or Data Integrity Failures
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-42392 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-42392?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-42392?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-42392 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
h2database h21.1.000 and later

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-h376-j262-vhq6Mavencom.h2database:h2>=1.1.100 <2.0.2062.0.206

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian9h2database1.4.193-1+deb9u1DLA-2923-1
Debian10h2database1.4.197-4+deb10u1DSA-5076-1
Debian11h2database1.4.197-4+deb11u1DSA-5076-1
Debian12, 13, 14h2database2.1.210-1DEBIAN-CVE-2021-42392
Ubuntu20.04:LTSh2database1.4.197-4+deb10u1build0.20.04.1UBUNTU-CVE-2021-42392 USN-5365-1
Ubuntu22.04:LTSh2database2.1.210+really1.4.197-1UBUNTU-CVE-2021-42392
UbuntuPro:16.04:LTSh2database1.4.191-1ubuntu0.1~esm1UBUNTU-CVE-2021-42392 USN-6834-1
UbuntuPro:18.04:LTSh2database1.4.196-2ubuntu0.1~esm1UBUNTU-CVE-2021-42392 USN-6834-1
Red Hatjboss_enterprise_application_platform:7.4::el7eap7-activemq-artemis, eap7-activemq-artemis-ra, eap7-activemq-artemis-cli and 13 more0:2.16.0-9.redhat_00042.1.el7eapRHSA-2022:4918
Red Hatjboss_enterprise_application_platform:7.4::el7eap7-h2database0:1.4.197-2.redhat_00004.1.el7eapRHSA-2022:4918
Red Hatjboss_enterprise_application_platform:7.4::el7eap7-hal-console0:3.3.12-1.Final_redhat_00001.1.el7eapRHSA-2022:4918
Red Hatjboss_enterprise_application_platform:7.4::el7eap7-jackson-databind0:2.12.6.1-1.redhat_00003.1.el7eapRHSA-2022:4918
Red Hatjboss_enterprise_application_platform:7.4::el7eap7-jboss-xnio-base0:3.8.7-1.SP1_redhat_00001.1.el7eapRHSA-2022:4918
Red Hatjboss_enterprise_application_platform:7.4::el7eap7-netty, eap7-netty-all, eap7-netty-codec and 25 more0:4.1.72-4.Final_redhat_00001.1.el7eapRHSA-2022:4918
Red Hatjboss_enterprise_application_platform:7.4::el7eap7-undertow0:2.2.17-2.SP4_redhat_00001.1.el7eapRHSA-2022:4918
Red Hatjboss_enterprise_application_platform:7.4::el7eap7-wildfly, eap7-wildfly-modules, eap7-wildfly-javadocs and 2 more0:7.4.5-3.GA_redhat_00001.1.el7eapRHSA-2022:4918
Red Hatjboss_enterprise_application_platform:7.4::el7eap7-wildfly-http-client, eap7-wildfly-http-ejb-client, eap7-wildfly-http-client-common and 2 more0:1.1.11-1.SP1_redhat_00001.1.el7eapRHSA-2022:4918
Red Hatjboss_enterprise_application_platform:7.4::el7eap7-xerces-j20:2.12.0-3.SP04_redhat_00001.1.el7eapRHSA-2022:4918
Red Hatjboss_enterprise_application_platform:7.4::el8eap7-activemq-artemis, eap7-activemq-artemis-ra, eap7-activemq-artemis-cli and 13 more0:2.16.0-9.redhat_00042.1.el8eapRHSA-2022:4919
Red Hatjboss_enterprise_application_platform:7.4::el8eap7-h2database0:1.4.197-2.redhat_00004.1.el8eapRHSA-2022:4919
23 more for Red Hat in the JSON and on Red Hat's page.

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

In OpenShift Container Platform (OCP) the openshift4/ose-metering-presto container image ships the vulnerable version of h2, but as it uses default configuration the impact by this vulnerability is LOW. Additionally, the Presto component is part of the OCP Metering stack and since the release of OCP 4.6, the Metering product has been deprecated [1], hence the affected component is marked as wontfix.

[1] https://docs.openshift.com/container-platform/4.6/release_notes/ocp-4-6-release-notes.html#ocp-4-6-metering-operator-deprecated

ProductPackageStateAdvisory
Red Hat JBoss Enterprise Application Platformcom.h2database/h2:1.4.197.redhat-00004Fixed 2022-06-06RHSA-2022:4922
Red Hat JBoss Enterprise Application Platform 7.3 EUS for RHEL 7eap7-hal-console-0:3.2.17-1.Final_redhat_00001.1.el7eapFixed 2025-02-24RHSA-2025:1747
Red Hat JBoss Enterprise Application Platform 7.3 EUS for RHEL 7eap7-jackson-annotations-0:2.10.4-2.redhat_00004.1.el7eapFixed 2025-02-24RHSA-2025:1747
Red Hat JBoss Enterprise Application Platform 7.3 EUS for RHEL 7eap7-jackson-core-0:2.10.4-2.redhat_00004.1.el7eapFixed 2025-02-24RHSA-2025:1747
Red Hat JBoss Enterprise Application Platform 7.3 EUS for RHEL 7eap7-jackson-databind-0:2.10.4-4.redhat_00004.1.el7eapFixed 2025-02-24RHSA-2025:1747
Red Hat JBoss Enterprise Application Platform 7.3 EUS for RHEL 7eap7-jackson-jaxrs-providers-0:2.10.4-2.redhat_00004.1.el7eapFixed 2025-02-24RHSA-2025:1747
Red Hat JBoss Enterprise Application Platform 7.3 EUS for RHEL 7eap7-jackson-modules-base-0:2.10.4-4.redhat_00004.1.el7eapFixed 2025-02-24RHSA-2025:1747
Red Hat JBoss Enterprise Application Platform 7.3 EUS for RHEL 7eap7-jackson-modules-java8-0:2.10.4-2.redhat_00004.1.el7eapFixed 2025-02-24RHSA-2025:1747
Red Hat JBoss Enterprise Application Platform 7.3 EUS for RHEL 7eap7-jettison-0:1.5.2-2.redhat_00002.1.el7eapFixed 2025-02-24RHSA-2025:1747
Red Hat JBoss Enterprise Application Platform 7.3 EUS for RHEL 7eap7-netty-0:4.1.63-4.Final_redhat_00002.1.el7eapFixed 2025-02-24RHSA-2025:1747
Red Hat BPM Suite 6h2Out of support scope
Red Hat build of Apicurio Registry 2h2Affected
Red Hat Decision Manager 7h2Not affected
Red Hat Fuse 7h2Not affected
Red Hat Integration Camel K 1h2Not affected
Red Hat Integration Camel Quarkus 1h2Affected
Red Hat JBoss BRMS 5h2Out of support scope
Red Hat JBoss BRMS 6h2Out of support scope
Red Hat JBoss Data Grid 7h2Out of support scope
Red Hat JBoss Data Virtualization 6h2Out of support scope
23 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-42392.

Detection rules

Ways to detect this CVE, not exploit code: the nuclei template that checks a system for it, and the Suricata and Snort rules that name it. A rule set may ship a rule turned off, so check yours by its sid.

Attack patterns (CAPEC)

  • CAPEC-586 Object Injection Likelihood: Medium · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON