CVE-2022-23221: H2 Console - Remote Code Execution
- Cve: CVE-2022-23221
- Name: H2 Console - Remote Code Execution
- 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.
- Impact: Remote attackers can execute arbitrary code on the server, potentially leading to full system compromise.
- Remediation: Update to version 2.1.210 or later.
- Vulnerability type: command_injection
- Vulnerability impact: remote_code_execution
- Requirement type: none
- Labels source: projectdiscovery
- Severity: critical
- Cvss score: 9.8
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.64766
- Epss percentile: 0.99262
- Assignee: [email protected]
- Published at: 2022-01-19T17:15:09Z
- Age in days: 1769
- Modified at: 2026-06-17T04:29:41Z
- Patch available: yes
- Public exploits total: 5
- References total: 10
- Products total: 3
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2022-23221
- Nvd status: modified
- Checked, none or zero: known exploited entries, public exploits capped, rejected by nvd
- Not known: requirements
Cwe
| Id | Name |
|---|---|
| CWE-88 | Improper Neutralization of Argument Delimiters in a Command |
Nuclei templates
| Id | Url |
|---|---|
| CVE-2022-23221 | https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2022/CVE-2022-23221.yaml |
Hackerone
- Reports: 8
- Rank: 2270
Public exploits
| Url | Source | Added date |
|---|---|---|
| http://packetstormsecurity.com/files/165676/H2-Database-Console-Remote-Code-Execution.html | nvd | 2022-01-19 |
| http://seclists.org/fulldisclosure/2022/Jan/39 | nvd | 2022-01-19 |
| https://twitter.com/d0nkey_man/status/1483824727936450564 | nvd | 2022-01-19 |
| https://github.com/CyberCTF/vulhub-h2database-cve-2022-23221 | poc-in-github | 2026-10-08 |
| https://github.com/straightSang/H2-database-CVE-2022-23221 | poc-in-github | 2026-07-09 |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/h2database/h2database/releases/tag/version-2.1.210 | nvd | Patch, Release Notes, Third Party Advisory |
| https://github.com/h2database/h2database/security/advisories | nvd | Mitigation, Patch, Third Party Advisory |
| https://www.oracle.com/security-alerts/cpuapr2022.html | nvd | Patch, Third Party Advisory |
| http://packetstormsecurity.com/files/165676/H2-Database-Console-Remote-Code-Execution.html | nvd | Exploit, Third Party Advisory, VDB Entry |
| http://seclists.org/fulldisclosure/2022/Jan/39 | nvd | Exploit, Mailing List, Third Party Advisory |
| https://twitter.com/d0nkey_man/status/1483824727936450564 | nvd | Exploit, Third Party Advisory |
| https://lists.debian.org/debian-lts-announce/2022/02/msg00017.html | nvd | Mailing List, Third Party Advisory |
| https://www.debian.org/security/2022/dsa-5076 | nvd | Third Party Advisory |
| https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2022/CVE-2022-23221.yaml | nuclei_template | Nuclei Template |
| https://security.netapp.com/advisory/ntap-20230818-0011/ | nvd |
Products
Same in every row:
- Platform bound: no
- Sources: nvd
| Product | Affected | Url |
|---|---|---|
| h2database:h2 | >= 1.1.100, < 2.0.206 | /v1/products/h2database/h2 |
| debian:debian_linux | = 11.0, = 10.0, = 9.0 | /v1/products/debian/debian_linux |
| oracle:communications_cloud_native_core_console | = 1.9.0 | /v1/products/oracle/communications_cloud_native_core_console |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| h2database/h2database | package, releases, security_advisory | yes | /v1/repositories/h2database/h2database |
Index
- Repositories: 390
- Repositories high signal: 229
- Packages: 1
Exploitation
- Exploitation seen: yes
- Public exploit: yes
- Public exploit count: 5
- Public exploit first date: 2022-01-19
- Remote: yes
- Hackerone reports: 8
- Exposed hosts: 4706702
- Checked, none or zero: known exploited, known exploited by, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, initial access since