Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. com.h2database/h2
  4. ›
  5. CVE-2022-23221

CVE-2022-23221: Improper Control of Generation of Code ('Code Injection')

January 21, 2022 (updated January 27, 2022)

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.

References

  • packetstormsecurity.com/files/165676/H2-Database-Console-Remote-Code-Execution.html
  • seclists.org/fulldisclosure/2022/Jan/39
  • github.com/advisories/GHSA-45hx-wfhj-473x
  • github.com/h2database/h2database/releases/tag/version-2.1.210
  • github.com/h2database/h2database/security/advisories
  • nvd.nist.gov/vuln/detail/CVE-2022-23221
  • twitter.com/d0nkey_man/status/1483824727936450564

Code Behaviors & Features

Detect and mitigate CVE-2022-23221 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 2.1.210

Fixed versions

  • 2.1.210

Solution

Upgrade to version 2.1.210 or above.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
  • CWE-94: Improper Control of Generation of Code ('Code Injection')

Source file

maven/com.h2database/h2/CVE-2022-23221.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:00 +0000.