cve.bz

CVE-2022-23221 Argument Injection

9.8 criticalExploit referenceEPSS 65%Fix available

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

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

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
65% (unchanged from 65% a week ago; 65% 30 days ago) estimated probability of exploitation activity in the next 30 days; 99th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: yes · Technical impact: total, assessed 2025-04-23. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-88 Improper Neutralization of Argument Delimiters in a Command (Argument Injection)
OWASP Top 10
A05:2025 Injection
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-2022-23221 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-23221?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-23221?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-2022-23221 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 NVD's CPE matches.

ProductAffected
h2database:h2from 1.1.100 before 2.0.206
debian:debian_linux9.0
debian:debian_linux10.0
debian:debian_linux11.0
oracle:communications_cloud_native_core_console1.9.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-45hx-wfhj-473xMavencom.h2database:h2<2.1.2102.1.210

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-2022-23221
Ubuntu20.04:LTSh2database1.4.197-4+deb10u1build0.20.04.1UBUNTU-CVE-2022-23221 USN-5365-1
Ubuntu22.04:LTSh2database2.1.210+really1.4.197-1UBUNTU-CVE-2022-23221
UbuntuPro:16.04:LTSh2database1.4.191-1ubuntu0.1~esm1UBUNTU-CVE-2022-23221 USN-6834-1
UbuntuPro:18.04:LTSh2database1.4.196-2ubuntu0.1~esm1UBUNTU-CVE-2022-23221 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
29 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 Important.

Red Hat's statement

In OpenShift Container Platform (OCP) the openshift-enterprise-3.11/metrics-hawkular-metrics-container container image ships a vulnerable version of h2 as part of the underlying images, but as it uses standard configuration and Console is not enabled/started by default, therefore the impact by this vulnerability is LOW and will not be fixed as OCP 3.x has already reached End of Full Support.

[1] https://access.redhat.com/support/policy/updates/openshift_noncurrent

ProductPackageStateAdvisory
Red Hat Fuse 7.11h2Fixed 2022-07-07RHSA-2022:5532
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.1 EUS for RHEL 7eap7-h2database-0:1.4.197-2.redhat_00005.1.ep7.el7Fixed 2024-11-25RHSA-2024:10208
Red Hat JBoss Enterprise Application Platform 7.3 EUS for RHEL 7eap7-apache-cxf-0:3.4.10-1.SP1_redhat_00001.1.el7eapFixed 2024-11-25RHSA-2024:10207
Red Hat JBoss Enterprise Application Platform 7.3 EUS for RHEL 7eap7-avro-0:1.7.6-8.redhat_00003.1.el7eapFixed 2024-11-25RHSA-2024:10207
Red Hat JBoss Enterprise Application Platform 7.3 EUS for RHEL 7eap7-h2database-0:1.4.197-3.redhat_00004.1.el7eapFixed 2024-11-25RHSA-2024:10207
Red Hat JBoss Enterprise Application Platform 7.3 EUS for RHEL 7eap7-jboss-annotations-api_1.3_spec-0:2.0.1-4.Final_redhat_00001.1.el7eapFixed 2024-11-25RHSA-2024:10207
Red Hat JBoss Enterprise Application Platform 7.3 EUS for RHEL 7eap7-jboss-marshalling-0:2.0.15-1.Final_redhat_00001.1.el7eapFixed 2024-11-25RHSA-2024:10207
Red Hat JBoss Enterprise Application Platform 7.3 EUS for RHEL 7eap7-jboss-server-migration-0:1.7.2-12.Final_redhat_00013.1.el7eapFixed 2024-11-25RHSA-2024:10207
Red Hat JBoss Enterprise Application Platform 7.3 EUS for RHEL 7eap7-jboss-xnio-base-0:3.7.13-1.Final_redhat_00001.1.el7eapFixed 2024-11-25RHSA-2024:10207
Red Hat BPM Suite 6h2Out of support scope
Red Hat build of Apicurio Registry 2h2Fix deferred
Red Hat Decision Manager 7h2Not affected
Red Hat Integration Camel K 1h2Not affected
Red Hat Integration Camel Quarkus 1h2Not affected
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
Red Hat JBoss Enterprise Application Platform 6h2Out of support scope
16 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-2022-23221.

GitHub PoC

Repositories on GitHub named after this CVE or listed for it by the PoC-in-GitHub index. For those marked Harbor Check: matches CVE, Flawharbor read the code and found it implements this CVE's exploitation technique: read, not run, and its dependencies only checked for warning signs, so a pointer and no guarantee. The rest are unverified: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it. How Harbor Check reads them, and what it found.

Attack patterns (CAPEC)

  • CAPEC-41 Using Meta-characters in E-mail Headers to Inject Malicious Payloads Likelihood: High · Severity: High
  • CAPEC-88 OS Command Injection Likelihood: High · Severity: High
  • CAPEC-137 Parameter Injection Likelihood: Medium · Severity: Medium
  • CAPEC-174 Flash Parameter Injection Likelihood: High · Severity: Medium
  • CAPEC-460 HTTP Parameter Pollution (HPP) Severity: Medium

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

References

Check your stackJSON