{"id":"CVE-2022-23221","published":"2022-01-19T00:00:00Z","modified":"2025-05-05T16:27:07Z","title":"H2 Console before 2.1.210 allows remote attackers to execute arbitrary code via a jdbc:h2:mem JDBC URL containing the…","vendor":null,"product":null,"tier":"core","eol":null,"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total","timestamp":"2025-04-23T13:31:39.595191Z","from":"CISA ADP","provenance":"source"},"description":{"text":"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.","provenance":"source","from":"CVE.org"},"summary":{"text":"The H2 Console, in versions before 2.1.210, contains a flaw in how it handles JDBC URLs, specifically those using the jdbc:h2:mem form, where argument delimiters are not properly neutralized. An remote attacker with no authentication and no user interaction can supply a crafted URL containing the IGNORE_UNKNOWN_SETTINGS, FORBID_CREATION and INIT=RUNSCRIPT settings to execute arbitrary code over the network.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-21T03:44:43Z"},"cvss":{"score":9.8,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.64766,"percentile":0.99262,"date":"2026-11-23","provenance":"source"},"kev":null,"vulncheckKev":null,"exploited":false,"otx":{"pulseCount":4,"pulses":[{"name":"ripe.arin.enom.cpanel.cpcalendar.iana.networksolutions.02050.webdisk.webmail.","url":"https://otx.alienvault.com/pulse/69fdc02bea1e4ec923b01688","created":"2026-05-08"},{"name":"ACTUALIZACION | Oracle Critical Patch Update Advisory - January 2024","url":"https://otx.alienvault.com/pulse/65c0fd55c5d3c780a06aa227","created":"2024-02-05"},{"name":"Oracle Critical Patch Update Advisory - April 2022","url":"https://otx.alienvault.com/pulse/626040216e00cd388b1b9180","created":"2022-04-20"},{"name":"H2 Database Code Execution Vulnerability","url":"https://otx.alienvault.com/pulse/62542a6e4cef2a94462ddef7","created":"2022-04-11"}],"provenance":"machine"},"cwes":[{"id":"CWE-88","name":"Improper Neutralization of Argument Delimiters in a Command"}],"references":[{"url":"https://github.com/h2database/h2database/security/advisories","tags":[]},{"url":"http://seclists.org/fulldisclosure/2022/Jan/39","tags":["mailing-list"]},{"url":"https://lists.debian.org/debian-lts-announce/2022/02/msg00017.html","tags":["mailing-list"]},{"url":"https://www.debian.org/security/2022/dsa-5076","tags":["vendor-advisory"]},{"url":"https://www.oracle.com/security-alerts/cpuapr2022.html","tags":[]},{"url":"https://github.com/h2database/h2database/releases/tag/version-2.1.210","tags":[]},{"url":"https://twitter.com/d0nkey_man/status/1483824727936450564","tags":[]},{"url":"http://packetstormsecurity.com/files/165676/H2-Database-Console-Remote-Code-Execution.html","tags":[]},{"url":"https://www.oracle.com/security-alerts/cpujul2022.html","tags":[]},{"url":"https://security.netapp.com/advisory/ntap-20230818-0011/","tags":[]}],"techniques":[],"reports":[],"affected":[{"ecosystem":"Maven","package":"com.h2database:h2","vulnerableRanges":["<2.1.210"],"patched":["2.1.210"],"from":["GHSA-45hx-wfhj-473x"],"provenance":"source"}],"advisories":[{"id":"GHSA-45hx-wfhj-473x","url":"https://github.com/advisories/GHSA-45hx-wfhj-473x","severity":"CRITICAL","ecosystem":"Maven","package":"com.h2database:h2","vulnerableRanges":["<2.1.210"],"patched":["2.1.210"],"provenance":"source","from":"GHSA"}],"euvd":{"id":"EUVD-2022-0440","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2022-0440","exploited":false,"exploitedSince":null,"provenance":"source"},"exploits":[],"exploitSources":{"pocGithub":{"count":2,"skipped":0,"earliest":"2026-07-09","earliestUrl":"https://github.com/straightSang/H2-database-CVE-2022-23221","repos":[{"name":"straightSang/H2-database-CVE-2022-23221","url":"https://github.com/straightSang/H2-database-CVE-2022-23221","stars":0,"created":"2026-07-09"},{"name":"CyberCTF/vulhub-h2database-cve-2022-23221","url":"https://github.com/CyberCTF/vulhub-h2database-cve-2022-23221","stars":0,"created":"2026-10-08"}]},"nuclei":[{"id":"CVE-2022-23221","name":"H2 Database Console - JDBC URL Pre-Auth RCE","severity":"critical","path":"http/cves/2022/CVE-2022-23221.yaml","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2022/CVE-2022-23221.yaml"}],"first":{"date":"2026-07-09","source":"PoC-in-GitHub","url":"https://github.com/straightSang/H2-database-CVE-2022-23221"},"provenance":"source"},"exploitRefs":["http://packetstormsecurity.com/files/165676/H2-Database-Console-Remote-Code-Execution.html"],"flow":[],"timeline":[{"date":"2022-01-19","kind":"published","label":"Published (CVE.org)","url":"https://www.cve.org/CVERecord?id=CVE-2022-23221","provenance":"source"},{"date":"2026-07-09","kind":"exploit-public","label":"First public exploit: PoC-in-GitHub","url":"https://github.com/straightSang/H2-database-CVE-2022-23221","provenance":"source"}],"speed":{"daysToPublicExploit":1632,"firstExploitFrom":"PoC-in-GitHub","daysToKev":null},"priority":{"score":33.3,"factors":[{"name":"In a KEV catalog","points":0.0,"detail":"not listed"},{"name":"Recent KEV listing","points":0.0,"detail":"not listed"},{"name":"Known ransomware use","points":0.0,"detail":"not known"},{"name":"EPSS percentile","points":19.85,"detail":"percentile 0.9926"},{"name":"Named in threat reports","points":0.0,"detail":"0 reports"},{"name":"Public exploit code","points":5.0,"detail":"1 NVD exploit link; 2 PoC-in-GitHub repos; 1 nuclei template"},{"name":"Mentioned in OTX pulses","points":1.59,"detail":"4 pulses"},{"name":"CVSS severity","points":6.86,"detail":"base score 9.8"},{"name":"End-of-life product","points":0.0,"detail":"supported or unknown"}]},"lineage":{"packageHistory":[{"cve":"CVE-2021-23463","published":"2021-12-10","fixed":"2.0.202","kev":false},{"cve":"CVE-2021-42392","published":"2022-01-07","fixed":"2.0.206","kev":false,"link":{"from":"CVE-2021-42392","to":"CVE-2022-23221","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:com.h2database:h2","fromFixed":"2.0.206","toFixed":"2.1.210","daysApart":12}]}},{"cve":"CVE-2022-23221","published":"2022-01-19","fixed":"2.1.210","kev":false},{"cve":"CVE-2022-45868","published":"2022-11-23","fixed":"2.2.220","kev":false,"link":{"from":"CVE-2022-23221","to":"CVE-2022-45868","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:com.h2database:h2","fromFixed":"2.1.210","toFixed":"2.2.220","daysApart":308}]}}],"package":"Maven:com.h2database:h2"}}