INCIDENT MAP

Browse / AI Framework and Platform Flaws / CVE-2022-23221

Arbitrary code execution in H2 Console

CVE-2022-23221 ยท 2022-01-21 critical

Class
AI Framework and Platform Flaws (filed by a model that read the advisory)
Technique
Code and command execution
Affected
com.h2database:h2 (Maven)
CVSS
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
64.8% chance of exploitation in 30 days

How it works, in short

A crafted H2 JDBC URL with an INIT=RUNSCRIPT setting makes the console run an attacker-supplied SQL script. (Our summary, written by a model. The source text is below.)

Details

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

Source: GitHub Advisory Database, used under CC BY 4.0.