Home / H2database / H2 / CVE-2022-23221
CVE-2022-23221: is it exploited, and which versions of H2database H2 are affected and fixed?
CVE-2022-23221 is an argument injection vulnerability in H2database H2. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 13:08 UTC). Affected: com.h2database:h2 before 2.1.210 (GitHub advisory GHSA-45hx-wfhj-473x). Fixed in 2.1.210 (GitHub advisory GHSA-45hx-wfhj-473x). Severity: Critical (9.8, CVSS 3.1, from CISA-ADP).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 13:08 UTC, CVE record November 19, 2026, 07:14 UTC and NVD November 19, 2026, 07:51 UTC.
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.
From the CVE record by mitre, last updated May 5, 2025, 16:27 UTC.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| Maven | com.h2database:h2 | < 2.1.210 | 2.1.210 | GHSA-45hx-wfhj-473x |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated January 27, 2022. Summary: Arbitrary code execution in H2 Console.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| h2database | h2 | from 1.1.100 before 2.0.206 | application |
| debian | debian linux | 9.0 | operating system |
| debian | debian linux | 10.0 | operating system |
| debian | debian linux | 11.0 | operating system |
| oracle | communications cloud native core console | 1.9.0 | application |
NVD analysis (status Modified), last modified June 17, 2026, 04:29 UTC.
How severe is CVE-2022-23221?
| Score | Version | Vector | Source |
|---|---|---|---|
| Critical 9.8 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H | CISA-ADP |
| Critical 9.8 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H | NVD |
| High 10.0 | CVSS 2.0 | AV:N/AC:L/Au:N/C:C/I:C/A:C | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2022-23221 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: poc; automatable: yes; technical impact: total (CISA ADP, April 23, 2025)
- EPSS
- 80.0% probability of exploitation activity in the next 30 days, percentile 99.6 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-88 Improper Neutralization of Argument Delimiters in a Command
Where are the vendor advisories and references?
- https://github.com/h2database/h2database/security/advisories
- 20220124 Unauthenticated RCE vuln in the H2 Database console: CVE-2022-23221. mailing-list
- [debian-lts-announce] 20220215 [SECURITY] [DLA 2923-1] h2database security update mailing-list
- DSA-5076 vendor-advisory
- https://www.oracle.com/security-alerts/cpuapr2022.html
- https://github.com/h2database/h2database/releases/tag/version-2.1.210
- https://twitter.com/d0nkey_man/status/1483824727936450564
- http://packetstormsecurity.com/files/165676/H2-Database-Console-Remote-Code-Execution.html
- https://www.oracle.com/security-alerts/cpujul2022.html
- https://security.netapp.com/advisory/ntap-20230818-0011/
When was it published, and where is the official record?
- Reserved
- January 14, 2022
- Published
- January 19, 2022, 00:00 UTC
- CVE record updated
- May 5, 2025, 16:27 UTC by mitre
- NVD
- Modified, last modified June 17, 2026, 04:29 UTC
- Last checked
- CVE list November 19, 2026, 07:14 UTC; NVD November 19, 2026, 07:51 UTC; KEV December 3, 2026, 13:08 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect H2?
- Nov 23, 2022CVE-2022-45868 H2database H2: sensitive data stored in clear text disputed
- Jan 7, 2022CVE-2021-42392 h2database h2: deserialization of untrusted data
- Jul 24, 2018CVE-2018-14335 H2database H2: link following (a symlink lets an attacker reach other files)
- Apr 11, 2018CVE-2018-10054 Cognitect Datomic: improper input validation disputed
Questions about CVE-2022-23221
Is CVE-2022-23221 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 13:08 UTC. FIRST's EPSS gives it a 80.0% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of H2database H2 are affected by CVE-2022-23221?
com.h2database:h2 before 2.1.210, per the GitHub advisory GHSA-45hx-wfhj-473x. The tables above give every range the sources list.
Which version fixes CVE-2022-23221?
2.1.210, per the GitHub advisory GHSA-45hx-wfhj-473x. Check the vendor's advisory before you rely on it.
How severe is CVE-2022-23221?
Critical (9.8, CVSS 3.1, from CISA-ADP). The severity table above shows each score with its source.
Where is the official record of CVE-2022-23221?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.