SecurityContext

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

IdName
CWE-88Improper Neutralization of Argument Delimiters in a Command

Nuclei templates

IdUrl
CVE-2022-23221https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2022/CVE-2022-23221.yaml

Hackerone

  • Reports: 8
  • Rank: 2270

Public exploits

UrlSourceAdded date
http://packetstormsecurity.com/files/165676/H2-Database-Console-Remote-Code-Execution.htmlnvd2022-01-19
http://seclists.org/fulldisclosure/2022/Jan/39nvd2022-01-19
https://twitter.com/d0nkey_man/status/1483824727936450564nvd2022-01-19
https://github.com/CyberCTF/vulhub-h2database-cve-2022-23221poc-in-github2026-10-08
https://github.com/straightSang/H2-database-CVE-2022-23221poc-in-github2026-07-09

References

UrlSourceTags
https://github.com/h2database/h2database/releases/tag/version-2.1.210nvdPatch, Release Notes, Third Party Advisory
https://github.com/h2database/h2database/security/advisoriesnvdMitigation, Patch, Third Party Advisory
https://www.oracle.com/security-alerts/cpuapr2022.htmlnvdPatch, Third Party Advisory
http://packetstormsecurity.com/files/165676/H2-Database-Console-Remote-Code-Execution.htmlnvdExploit, Third Party Advisory, VDB Entry
http://seclists.org/fulldisclosure/2022/Jan/39nvdExploit, Mailing List, Third Party Advisory
https://twitter.com/d0nkey_man/status/1483824727936450564nvdExploit, Third Party Advisory
https://lists.debian.org/debian-lts-announce/2022/02/msg00017.htmlnvdMailing List, Third Party Advisory
https://www.debian.org/security/2022/dsa-5076nvdThird Party Advisory
https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2022/CVE-2022-23221.yamlnuclei_templateNuclei Template
https://security.netapp.com/advisory/ntap-20230818-0011/nvd

Products

Same in every row:

  • Platform bound: no
  • Sources: nvd
ProductAffectedUrl
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

RepositoryLink kindsIndexedUrl
h2database/h2databasepackage, releases, security_advisoryyes/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

Nuclei template