CVE-2022-23221 in the critical feed json
Arbitrary code execution in H2 Console
published 2022-01-19 4 y ago modified 2026-06-17 4 mo ago also GHSA-45hx-wfhj-473x , EUVD-2022-0440
- cvss
- 9.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 64.8%
- EPSS 64.8% chance of exploitation in 30 days, percentile 99.2%
- public exploits
- 0
- none known
Summary
H2 Console before 2.1.210 allows remote attackers to execute arbitrary code via a jdbc:h2:mem JDBC URL containing the IGNORE_UNKNOWN_SETTINGS=TRUE;FORBID_CREATION=FALSE;INIT=RUNSCRIPT substring, a different vulnerability than CVE-2021-42392.
Patch / fix
- maven com.h2database:h2 2.1.210
- h2database h2 2.0.206
- h2database Debian 14, Debian 13, Debian 12 2.1.210-1
debian advisories DEBIAN-CVE-2022-23221
- h2database Ubuntu 20.04 LTS 1.4.197-4+deb10u1build0.20.04.1
- h2database Ubuntu 22.04 LTS 2.1.210+really1.4.197-1
- h2database Ubuntu Pro 16.04 LTS 1.4.191-1ubuntu0.1~esm1
- h2database Ubuntu Pro 18.04 LTS 1.4.196-2ubuntu0.1~esm1
ubuntu advisories UBUNTU-CVE-2022-23221
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- eap7-netty jboss enterprise application platform 7.4 4.1.72-4.Final_redhat_00001.1.el7eap
- eap7-wildfly jboss enterprise application platform 7.4 7.4.5-3.GA_redhat_00001.1.el7eap
- eap7-undertow jboss enterprise application platform 7.4 2.2.17-2.SP4_redhat_00001.1.el7eap
- eap7-netty-all jboss enterprise application platform 7.4 4.1.72-4.Final_redhat_00001.1.el7eap
- eap7-xerces-j2 jboss enterprise application platform 7.4 2.12.0-3.SP04_redhat_00001.1.el7eap
- eap7-h2database jboss enterprise application platform 7.4 1.4.197-2.redhat_00004.1.el7eap
- eap7-hal-console jboss enterprise application platform 7.4 3.3.12-1.Final_redhat_00001.1.el7eap
- eap7-netty-codec jboss enterprise application platform 7.4 4.1.72-4.Final_redhat_00001.1.el7eap
red hat advisories RHSA-2024:10208RHSA-2024:10207RHSA-2022:4918RHSA-2022:4919
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2022-23221 updated cvss 9.8
h2: Loading of custom classes from remote servers through JNDI
-
Red Hat BPM Suite 6 h2affected: no fix planned “Out of support scope”
-
Red Hat build of Apicurio Registry 2 h2affected: no fix available “Fix deferred”
-
Red Hat JBoss BRMS 5 h2 Red Hat JBoss BRMS 6 h2 Red Hat JBoss Data Grid 7 h2 Red Hat JBoss Data Virtualization 6 h2 Red Hat JBoss Enterprise Application Platform 6 h2 Red Hat JBoss Fuse 6 h2affected: no fix planned “Out of support scope”
+3 more productsfewer
Red Hat JBoss Fuse Service Works 6 h2 Red Hat JBoss Operations Network 3 h2 Red Hat JBoss SOA Platform 5 h2 -
Red Hat OpenShift Container Platform 3.11 openshift3/ose-metrics-hawkular-metricsaffected: no fix planned “Will not fix”
-
Red Hat Single Sign-On 7 h2affected: no fix available
-
Red Hat Fuse 7.11fixed: vendor fix RHSA-2022:5532
-
Red Hat JBoss EAP 7.4 for RHEL 7 Server eap7-h2database 1.4.197-2.redhat_00004.1.el7eapfixed: vendor fix RHSA-2022:4918
-
Red Hat JBoss EAP 7.4 for RHEL 8 eap7-h2database 1.4.197-2.redhat_00004.1.el8eapfixed: vendor fix RHSA-2022:4919
show 4 moreshow fewer
-
Red Hat JBoss Enterprise Application Platform h2 1.4.197.redhat-00004fixed: vendor fix RHSA-2022:4922
-
Red Hat JBoss Enterprise Application Platform 7.1 EUS for RHEL 7 Server eap7-h2database 1.4.197-2.redhat_00005.1.ep7.el7fixed: vendor fix RHSA-2024:10208
-
Red Hat JBoss Enterprise Application Platform 7.3 EUS for RHEL 7 Server eap7-avro 1.7.6-8.redhat_00003.1.el7eap, eap7-wss4j 2.3.3-2.redhat_00001.1.el7eap, eap7-xalan-j2 2.7.1-38.redhat_00015.1.el7eap, eap7-wildfly 7.3.11-4.GA_redhat_00002.1.el7eap, eap7-h2database 1.4.197-3.redhat_00004.1.el7eap, eap7-wss4j-policy 2.3.3-2.redhat_00001.1.el7eap, +41 morefixed: vendor fix RHSA-2024:10207
-
Red Hat Decision Manager 7 h2 Red Hat Integration Camel K 1 h2 Red Hat Integration Camel Quarkus 1 h2 Red Hat JBoss EAP 7.4 for RHEL 7 Server eap7-log4j 2.17.1-2.redhat_00002.1.el7eap, eap7-jberet 1.3.9-1.SP1_redhat_00001.1.el7eap, eap7-snakeyaml 1.29.0-1.redhat_00001.2.el7eap, eap7-wildfly 7.4.5-3.GA_redhat_00001.1.el7eap, eap7-netty 4.1.72-4.Final_redhat_00001.1.el7eap, eap7-jackson-core 2.12.6-1.redhat_00001.1.el7eap, +84 more Red Hat JBoss EAP 7.4 for RHEL 8 eap7-log4j 2.17.1-2.redhat_00002.1.el8eap, eap7-jberet 1.3.9-1.SP1_redhat_00001.1.el8eap, eap7-snakeyaml 1.29.0-1.redhat_00001.2.el8eap, eap7-wildfly 7.4.5-3.GA_redhat_00001.1.el8eap, eap7-netty 4.1.72-4.Final_redhat_00001.1.el8eap, eap7-jackson-core 2.12.6-1.redhat_00001.1.el8eap, +82 more Red Hat JBoss Enterprise Application Platform pom.xml, c3 0.6.0, c3 0.7.1, d3 5.9.2, ms 2.0.0, ms 2.1.2, +1482 morenot affected: vulnerable code not present
+3 more productsfewer
Red Hat JBoss Enterprise Application Platform 7.1 EUS for RHEL 7 Server eap7-avro 1.7.6-2.redhat_00003.1.ep7.el7, eap7-xalan-j2 2.7.1-26.redhat_00015.1.ep7.el7, eap7-wildfly 7.1.8-2.GA_redhat_00002.1.ep7.el7, eap7-bouncycastle 1.68.0-1.redhat_00005.1.ep7.el7, eap7-apache-cxf 3.1.16-3.SP1_redhat_00001.1.ep7.el7, eap7-apache-cxf-rt 3.1.16-3.SP1_redhat_00001.1.ep7.el7, +10 more Red Hat JBoss Enterprise Application Platform Expansion Pack h2 Red Hat Process Automation 7 h2
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- yes
- Technical impact
- total
- Assessed
- 18 mo ago
Exploit prediction
64.77% chance of exploitation in the next 30 days, higher than 99.2% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- seclists.org http://seclists.org/fulldisclosure/2022/Jan/39 referenced PoC, tagged "exploit" by a source, unverified
- twitter.com https://twitter.com/d0nkey_man/status/1483824727936450564 referenced PoC, tagged "exploit" by a source, unverified
- packetstormsecurity.com http://packetstormsecurity.com/files/165676/H2-Database-Console-Remote-Code-Execution.html referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CISA ADP | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| CNA | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 10.0 | AV:N/AC:L/Au:N/C:C/I:C/A:C |
| GitHub | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| maven | com.h2database:h2 | <2.1.210 |
2.1.210 |
Classification
- Weakness
-
- CWE-88 Improper Neutralization of Argument Delimiters in a Command
References
-
github.com
/h2database/h2database/security/advisories
web, mitigation, patch, third-party-advisory
-
oracle.com
/security-alerts/cpuapr2022.html
web, patch, third-party-advisory
-
github.com
/h2database/h2database/releases/tag/version-2.1.210
web, patch, release-notes, third-party-advisory
-
seclists.org
/fulldisclosure/2022/Jan/39
mailing-list, web, exploit, third-party-advisory
-
twitter.com
/d0nkey_man/status/1483824727936450564
web, exploit, third-party-advisory
-
packetstormsecurity.com
/files/165676/H2-Database-Console-Remote-Code-Execution.html
web, exploit, third-party-advisory, vdb-entry
-
debian.org
/security/2022/dsa-5076
vendor-advisory, web, third-party-advisory
-
lists.debian.org
/debian-lts-announce/2022/02/msg00017.html
mailing-list, web, third-party-advisory
-
oracle.com
/security-alerts/cpujul2022.html
web, not-applicable
- security.netapp.com /advisory/ntap-20230818-0011/
-
nvd.nist.gov
/vuln/detail/CVE-2022-23221
advisory
-
github.com
/h2database/h2database
package
-
security.netapp.com
/advisory/ntap-20230818-0011
web
Sources
- CVE List CVE-2022-23221
- GitHub Advisory GHSA-45hx-wfhj-473x
- NVD CVE-2022-23221
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.