Skip to main content
Public proof of conceptFix available

CVE-2022-23221

A public proof of concept exists; no exploitation attested.

  • Published2022-01-19
  • Fixed in2.1.210
  • WeaknessCWE-88

Am I 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

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.

Timeline

dates in UTC
  1. 2022-01-1917:15CVE publishedNVD

Observed activity

isMalicious corpus · updated 2026-11-03 21:37 UTC
Indicators tagged with this CVE, per day0 indicators over 7 days
Block these indicators
  • Firewall list (EDL, text): https://api.ismalicious.com/edl/cve/CVE-2022-23221?format=txt
  • CSV export: https://api.ismalicious.com/edl/cve/CVE-2022-23221?format=csv
  • TAXII collection of exploited CVEs
  • The EDL and CSV take an API key on the Pro plan.

Versions per branch

OSV · NVD
h2
BranchAffectedFixed in
2.1< 2.1.2102.1.210
Debian debian linux
BranchAffectedFixed in
9.0= 9.0no fix published
10.0= 10.0no fix published
11.0= 11.0no fix published
H2database h2
BranchAffectedFixed in
2.0≥ 1.1.100, < 2.0.2062.0.206

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.2
  • 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-apache-cxfRed Hat:jboss_enterprise_application_platform_eus:7.3::el7all versions · fixed in 0:3.4.10-1.SP1_redhat_00001.1.el7eapand 3 other packages
  • eap7-apache-cxfRed Hat:jboss_enterprise_application_platform_eus:7.1::el7all versions · fixed in 0:3.1.16-3.SP1_redhat_00001.1.ep7.el7and 3 other packages
  • eap7-avroRed Hat:jboss_enterprise_application_platform_eus:7.3::el7all versions · fixed in 0:1.7.6-8.redhat_00003.1.el7eap
  • eap7-avroRed Hat:jboss_enterprise_application_platform_eus:7.1::el7all versions · fixed in 0:1.7.6-2.redhat_00003.1.ep7.el7

45 more package ranges on OSV.dev

Vendor advisories

  • CVE-2022-23221 Red Hat Product Security67 products fixed · 14 known affected

    h2: Loading of custom classes from remote servers through JNDI

    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 JBoss BRMS 5 · +11 more

  • RHSA-2024:10207 Red Hat Product Security59 products fixed

    Red Hat Security Advisory: Red Hat JBoss Enterprise Application Platform 7.3.11 Security update

  • RHSA-2024:10208 Red Hat Product Security2 products fixed

    Red Hat Security Advisory: Red Hat JBoss Enterprise Application Platform 7.1.8 on RHEL 7 security update

  • RHSA-2022:5532 Red Hat Product Security1 product fixed

    Red Hat Security Advisory: Red Hat Fuse 7.11.0 release and security update

  • RHSA-2022:4919 Red Hat Product Security2 products fixed

    Red Hat Security Advisory: Red Hat JBoss Enterprise Application Platform 7.4.5 security update on RHEL 8

  • RHSA-2022:4918 Red Hat Product Security2 products fixed

    Red Hat Security Advisory: Red Hat JBoss Enterprise Application Platform 7.4.5 security update on RHEL 7

1 more advisory

Full record on NVD

Fix

  1. Update h2 to 2.1.210
  2. Vendor fix Red Hat Product Security RHSA-2024:10207 · 59 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…
  3. Vendor fix Red Hat Product Security RHSA-2022:5532 · 1 productBefore applying the update, back up your existing installation, including all applications, configuration files, databases and database settings, and so on. Installation instructions are available from the Fuse 7.11.0 product documentation page: https://access.redhat.com/documentation/en-us/red_ha…
  4. 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
  5. 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).
  6. No fix available, says the vendor Red Hat Product Security CVE-2022-23221 · 1 productFix deferred
  7. No fix available, says the vendor Red Hat Product Security CVE-2022-23221 · 1 productAffected

Advisories and patches

Detection

read 2026-11-03 22:42 UTC
Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof-of-concept repositories
2 repositories, unverifiedstraightSang/H2-database-CVE-2022-23221CyberCTF/vulhub-h2database-cve-2022-23221
PoC-in-GitHub
Metasploit modules
none listed
Metasploit Framework

Sources

Identifiers

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-19
Last Modified
2026-06-17
NVD status
Modified
GitHub Advisory
GHSA-45hx-wfhj-473x

Frequently asked questions

What is CVE-2022-23221?

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.

Is CVE-2022-23221 actively exploited?

A proof-of-concept exploit exists for CVE-2022-23221, but active exploitation has not been confirmed at this time.

What is the CVSS score for CVE-2022-23221?

CVE-2022-23221 has a CVSS v3 base score of 9.8 (CRITICAL severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.

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

Sources for this record