CriticalGHSA-45hx-wfhj-473xCVE-2022-23221
Arbitrary code execution in H2 Console
Published 21 Jan 2022 · Updated 16 Feb 2024
Is your project on an affected com.h2database:h2?
Look after several Java apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected package
com.h2database:h2Maven
- Affected
- <2.1.210
- Fixed in
- 2.1.210
Update to the fixed version for your release line, for example:
mvn versions:use-dep-version -Dincludes=com.h2database:h2 -DdepVersion=2.1.210 -DforceVersion=trueDetails
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.
Is GHSA-45hx-wfhj-473x in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected com.h2database:h2, and gives you the command that fixes it.
More advisories for com.h2database:h2
- HighCVE-2022-45868Password exposure in H2 Database · 23 Nov 2022
- CriticalCVE-2021-42392RCE in H2 Console · 6 Jan 2022
- HighCVE-2021-23463Improper Restriction of XML External Entity Reference in com.h2database:h2. · 16 Dec 2021
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2022-23221
- Packagegithub.com/h2database/h2database
- Linkgithub.com/h2database/h2database/releases/tag/version-2.1.210
- Linkgithub.com/h2database/h2database/security/advisories
- Linklists.debian.org/debian-lts-announce/2022/02/msg00017.html
- Linksecurity.netapp.com/advisory/ntap-20230818-0011
- Linktwitter.com/d0nkey_man/status/1483824727936450564
- Linkwww.debian.org/security/2022/dsa-5076
- Linkwww.oracle.com/security-alerts/cpuapr2022.html
- Linkwww.oracle.com/security-alerts/cpujul2022.html
- Linkpacketstormsecurity.com/files/165676/H2-Database-Console-Remote-Code-Execution.html
- Linkseclists.org/fulldisclosure/2022/Jan/39
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.