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
02 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
03 Exploitation and scoring
- Exploitation
- Public exploit code exists. CISA's assessment records a public proof of concept. That is not a report of exploitation in the wild.
- SSVC decision
- ExploitationpocPublic proof-of-concept exploit code exists. Not a report of exploitation in the wild.
- AutomatableyesAn attacker can reliably automate reconnaissance through exploitation, so this scales.
- Technical ImpacttotalSuccessful exploitation gives total control of the vulnerable component.
- EPSS probability
- 64.76% probability of exploitation activity in the next 30 days.
- EPSS percentile
- Equal to or higher than the score of 99.1% of scored records. A rank, not a probability.
- NVD base score
- 9.8 (CVSS v3.x), scored by the NVD independently of the CNA.
- NVD CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- NVD analysis status
- Modified. NVD last modified this record on 2026-06-17.
- Red Hat severity
- Important. Red Hat's rating for its own products, not a CVSS rating.
Exploit-prediction scores from FIRST. Independent scoring and analysis status from the NVD. Vendor severity from Red Hat. Exploitation assessment and catalog membership from CISA.
04 Metadata
- Published
- 2022-01-19 00:00Z4 YR AGO
- Last updated
- 2025-05-05 16:27Z1 YR AGO
- Reserved
- 2022-01-14
- Assigning CNA
- mitre
- Record state
- PUBLISHED
- Severity
- Critical (CVSS 9.8)
- CNA CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Weaknesses
- Data version
- 5.1
- Document digest
- dbf4daebf4ceaa6c91047be55302ad7a7776c90cdc580117703456bf000995e2
05 Affected products
06 References
- github.comhttps://github.com/h2database/h2database/security/advisories
- seclists.org20220124 Unauthenticated RCE vuln in the H2 Database console: CVE-2022-23221.http://seclists.org/fulldisclosure/2022/Jan/39
- lists.debian.org[debian-lts-announce] 20220215 [SECURITY] [DLA 2923-1] h2database security updatehttps://lists.debian.org/debian-lts-announce/2022/02/msg00017.html
- www.debian.orgDSA-5076https://www.debian.org/security/2022/dsa-5076
- www.oracle.comhttps://www.oracle.com/security-alerts/cpuapr2022.html
- github.comhttps://github.com/h2database/h2database/releases/tag/version-2.1.210
- twitter.comhttps://twitter.com/d0nkey_man/status/1483824727936450564
- packetstormsecurity.comhttp://packetstormsecurity.com/files/165676/H2-Database-Console-Remote-Code-Execution.html
- www.oracle.comhttps://www.oracle.com/security-alerts/cpujul2022.html
- security.netapp.comhttps://security.netapp.com/advisory/ntap-20230818-0011/
07 Fixed in
Debian 12
- h2database Fixed in 2.1.210-1
Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.
Debian 13
- h2database Fixed in 2.1.210-1
Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.
Debian 14
- h2database Fixed in 2.1.210-1
Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu 20.04 LTS
- h2database Fixed in 1.4.197-4+deb10u1build0.20.04.1
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu 22.04 LTS
- h2database Fixed in 2.1.210+really1.4.197-1
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu Pro 16.04 LTS
- h2database Fixed in 1.4.191-1ubuntu0.1~esm1Available with Ubuntu Pro: https://ubuntu.com/pro
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu Pro 18.04 LTS
- h2database Fixed in 1.4.196-2ubuntu0.1~esm1Available with Ubuntu Pro: https://ubuntu.com/pro
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
A release or ecosystem missing from this list has no record here. It may be unaffected or not covered by the source. Source notices and licences.