CVE-2022-45868
Password exposure in H2 Database
Reported by mitre · Published November 23, 2022
h2 is fixed in 2.2.220 (Maven Central)
The web-based admin console in H2 Database Engine before 2.2.220 can be started via the CLI with the argument -webAdminPassword, which allows the user to specify the password in cleartext for the web admin console. Consequently, a local user (or an attacker that has obtained local access through some means) would be able to discover the password by listing processes and their arguments. NOTE: the vendor states "This is not a vulnerability of H2 Console ... Passwords should never be passed on the command line and every qualified DBA or system administrator is expected to know that." Nonetheless, the issue was fixed in 2.2.220.
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.2.220 |
| h2 | h2database | 2.1.214 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| wolfi | gradle-8 | * |
| n/a | n/a | * |
| chainguard | gradle-8 | * |
Timeline
- Nov 23, 2022 CVE Published
- Nov 24, 2022 EPSS Score (30 in total, the first dated here)
- Nov 24, 2022 PoC Published (2 in total, the first dated here)
- Apr 30, 2026 Security Advisory
- Jun 12, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2022-45868
vulnetix vdb fixes CVE-2022-45868
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-45868/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart