CVE-2022-45868 Password exposure in H2 Database
Local attackers can discover the H2 web admin console password by inspecting process arguments, potentially leading to unauthorized database access.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-45868?
CVE-2022-45868 is a high-severity vulnerability in n/a, published on 23 Nov 2022. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
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.
Weakness: CWE-312
Which versions are affected by CVE-2022-45868?
2 open source packages ship an affected version, including com.h2database:h2. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
com.h2database:h2 Maven | From 1.4.198 | 2.2.220 |
com.h2database:h2 Maven | From 1.4.198 | 2.2.220 |
Products include H2database H2.
How do I fix CVE-2022-45868?
Upgrade com.h2database:h2 to 2.2.220 or later.
Is CVE-2022-45868 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-45868 exists.
Other vulnerabilities in n/a
Sources
Also known as CLSA-2026-1786683223, DEBIAN-CVE-2022-45868, GHSA-22wj-vf5f-wrvj, RHLW-2026-7a34ef2db32d7967, ROOT-APP-MAVEN-CVE-2022-45868.