CVE-2022-23221
H2 Database vulnerability analysis and mitigation

Overview

H2 Console before version 2.1.210 contains a remote code execution vulnerability (CVE-2022-23221) that allows remote attackers to execute arbitrary code via a jdbc:h2:mem JDBC URL containing the IGNOREUNKNOWNSETTINGS=TRUE;FORBID_CREATION=FALSE;INIT=RUNSCRIPT substring. This vulnerability is distinct from CVE-2021-42392 (NVD, Debian).

Technical details

The vulnerability has a CVSS v3.1 Base Score of 9.8 (CRITICAL) with vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H. The flaw exists in the H2 Console's connection handling functionality, where insufficient validation of JDBC URL parameters allows attackers to execute arbitrary code through specially crafted URLs. The vulnerability is classified under CWE-88 (Improper Neutralization of Argument Delimiters in a Command) (NVD).

Impact

Successful exploitation of this vulnerability could lead to disclosure of sensitive information, addition or modification of data, or Denial of Service (DoS). The vulnerability allows attackers to execute arbitrary code with the privileges of the application running the H2 Console (NetApp).

Mitigation and workarounds

The vulnerability has been fixed in H2 Database version 2.1.210. Organizations are strongly advised to upgrade to this version or later. For systems that cannot be immediately upgraded, it is recommended to disable the H2 Console if not required, as it is primarily a developer tool. Debian has disabled the H2 console in their (old)stable releases as a mitigation measure (Debian).

Community reactions

The vulnerability received significant attention from the security community, with multiple vendors issuing advisories and patches. Oracle included fixes for this vulnerability in their Critical Patch Update Advisory for April 2022. The discovery was publicly disclosed by security researcher Ismail Aydemir (Twitter).

Additional resources


SourceThis report was generated using AI

Related H2 Database vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2022-23221CRITICAL9.8
  • H2 DatabaseH2 Database
  • h2
NoYesJan 19, 2022
CVE-2021-42392CRITICAL9.8
  • H2 DatabaseH2 Database
  • com.h2database:h2
NoYesJan 10, 2022
CVE-2021-23463CRITICAL9.1
  • H2 DatabaseH2 Database
  • h2
NoYesDec 10, 2021
CVE-2022-45868HIGH7.8
  • H2 DatabaseH2 Database
  • h2
NoYesNov 23, 2022
CVE-2018-14335MEDIUM6.5
  • H2 DatabaseH2 Database
  • cpe:2.3:a:h2database:h2
NoYesJul 24, 2018

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management