H2 Console - RCE (CVE-2022-23221)
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.
psychologyCrowdSec Analysis
CVE-2022-23221 is a critical remote code execution vulnerability in H2 Console versions before 2.1.210. Attackers can exploit a crafted JDBC URL to execute arbitrary code remotely, potentially compromising the system’s confidentiality, integrity, and availability.
CrowdSec has been tracking this vulnerability and its exploits since 24th of November 2026.
CrowdSec has not observed any significant exploitation activity targeting CVE-2022-23221 across its network. As a result, no community-driven trend analysis is available for this vulnerability at this time.
Attackers target the H2 web console at /h2-console/ and submit a crafted JDBC URL to /h2-console/login.do. The URL uses INIT to define a JavaScript trigger that executes operating-system commands.
Full Intelligence Available
Connect your API key to access CrowdSec scores, exploit timelines, and attacker IPs.
| Event | Date |
|---|---|
| CVE Published | 2022-01-19 |
| Rule Released | 2026-11-24 |
Remediation & Protection
External References
- http://packetstormsecurity.com/files/165676/H2-Database-Console-Remote-Code-Execution.html
- https://github.com/h2database/h2database/security/advisories
- https://www.oracle.com/security-alerts/cpujul2022.html
- https://www.debian.org/security/2022/dsa-5076
- https://twitter.com/d0nkey_man/status/1483824727936450564
- https://github.com/h2database/h2database/releases/tag/version-2.1.210
- https://www.oracle.com/security-alerts/cpuapr2022.html
- https://lists.debian.org/debian-lts-announce/2022/02/msg00017.html
- http://seclists.org/fulldisclosure/2022/Jan/39
- https://security.netapp.com/advisory/ntap-20230818-0011/
- https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2022/CVE-2022-23221.yaml