CVE-2022-23221
Arbitrary code execution in H2 Console
Reported by mitre · Published January 19, 2022
h2 is fixed in 2.1.210 (Maven Central)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| com.h2database:h2 | Maven Central | 2.1.210 |
| h2 | h2database | 2.0.206 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| n/a | n/a | * |
| Maven | com.h2database:h2 | 0 |
Timeline
- Jan 19, 2022 CVE Published
- Jan 25, 2022 PoC Published
- Feb 8, 2022 EPSS Score (30 in total, the first dated here)
- Mar 17, 2026 Security Advisory (33 in total, the first dated here)
- Jul 5, 2026 Coalition ESS Score
- Oct 31, 2026 Distribution Patch (33 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2022-23221
vulnetix vdb fixes CVE-2022-23221
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2022-23221/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- 20220124 Unauthenticated RCE vuln in the H2 Database console: CVE-2022-23221. mailing-list
- [debian-lts-announce] 20220215 [SECURITY] [DLA 2923-1] h2database security update mailing-list
- DSA-5076 vendor-advisory
- https://nvd.nist.gov/vuln/detail/CVE-2022-23221 advisory
- https://github.com/advisories/GHSA-45hx-wfhj-473x advisory