WaratekVRT Sign in

CVE-2022-23221 H2

Affected softwareH2
Severity9.8 Critical CVSS 3.1 3 scores
Fixed in2.1.210
WeaknessCWE-88
Published19 Jan 2022
Updated17 Jun 2026

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.

Exploitation status

Proof of concept only

A proof of concept exists, but no reviewed exploit catalogue lists this CVE.

  • CISA KEV not listed
  • VulnCheck KEV not listed
  • CISA Vulnrichment exploitation: poc CISA recorded that an exploit has been demonstrated. Automatable: yes, technical impact: total.
  • Indexed PoC 2 indexed, none at 5+ stars
  • EPSS 65% chance in 30 days A model's forecast, not a report of exploitation. Higher than 99% of all scored CVEs.

2 of these are GitHub repositories with fewer than 5 stars. They are listed for reference and don't count toward the exploitation status above.

IndexArtifactStarsFirst seen
GitHub PoC Vulhub h2database/CVE-2022-23221: H2 Database Console JDBC URL RCE (CVE-2022-23221), run with Isoloom 2026-10-08
GitHub PoC vulhub/H2-database/CVE-2022-23221 2026-07-09

Waratek protection

Protected by Waratek

Waratek has a rule that blocks attacks on this vulnerability.

  • Protection full
  • Action available security rule
  • Review human Researcher
  • Record active
Decided by Manual classification of this CVE in the legacy dataset
Finding A manual classification set this CVE's status to Protected by Waratek.

How to mitigate CVE-2022-23221

Upgrade H2 to 2.1.210 or later. Until you can, Waratek RASP blocks exploitation with a security rule that blocks this kind of attack. It runs inside the Java application, with no code changes.

Waratek RASP Runtime protection for Java applications

CVSS

9.8 CRITICAL v3.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H 3 metrics

We show the highest score from the newest CVSS version. Scores from different versions can't be compared, and the first score listed is sometimes a 0.0 placeholder.

VersionScoreBandVectorAssignerType
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 NVD Primary published
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 CISA-ADP Secondary
CVSS 2.0 10.0 none AV:N/AC:L/Au:N/C:C/I:C/A:C NVD Primary

Affected software and releases

Oracle advisories

AdvisoryTypeQuarterProducts Oracle names in its risk matrix
Oracle Critical Patch Update January 2024 ↗ CPU 2024-Q1 Oracle Fusion Middleware / B2B Engine (H2 Database) (12.2.1.4.0)
Oracle Critical Patch Update January 2023 ↗ CPU 2023-Q1 Oracle HealthCare Applications / Data Studio (H2 Database) (4.1.0.0-4.1.1.1)
Oracle Critical Patch Update April 2022 ↗ CPU 2022-Q2 Oracle Communications / CNC Console (H2) (1.9.0)

Oracle components and versions

FamilyComponentVersions, as Oracle lists themRead as
Oracle Communications CNC Console (H2) 1.9.0 1.9.0
Oracle Fusion Middleware B2B Engine (H2 Database) 12.2.1.4.0 12.2.1.4.0
Oracle HealthCare Applications Data Studio (H2 Database) 4.1.0.0-4.1.1.1

Maven packages

Affected and fixed versions, from OSV.dev
PackageIntroducedFixedLast affected
com.h2database:h2 0 2.1.210 unbounded

Products and versions

4 products, 6 version entries
SourceVendorProductSchemeAffected versions
osv com.h2database h2 generic < 2.1.210
nvd debian debian linux generic 9.0 · 10.0 · 11.0
nvd h2database h2 generic ≥ 1.1.100 and < 2.0.206
nvd oracle communications cloud native core console generic 1.9.0

References

URLTags
https://github.com/h2database/h2database PACKAGE
https://github.com/h2database/h2database/releases/tag/version-2.1.210 WEB
https://github.com/h2database/h2database/security/advisories WEB
https://lists.debian.org/debian-lts-announce/2022/02/msg00017.html WEB
https://security.netapp.com/advisory/ntap-20230818-0011 WEB
https://twitter.com/d0nkey_man/status/1483824727936450564 WEB
https://www.debian.org/security/2022/dsa-5076 WEB
https://www.oracle.com/security-alerts/cpuapr2022.html WEB
https://www.oracle.com/security-alerts/cpujul2022.html WEB
http://packetstormsecurity.com/files/165676/H2-Database-Console-Remote-Code-Execution.html WEB

Timeline

Published2022-01-19By the CVE Program.
NVD record modified2026-06-17NVD's own last-modified date for this record.