CVE-2022-45868: Infoleak
DISPUTED The web-based admin console in H2 Database Engine through 2.1.214 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."
Other sources
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.
— MITRE
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
maven/com.h2database:h2to a version that resolves this vulnerability.Fixed in 2.2.220 - Upgrade
Upgrade
h2databaseengine/web-admin-consoleto a version that resolves this vulnerability.Fixed in 2.2.220 - Configuration
Do not start the H2 web-based admin console using the CLI argument -webAdminPassword, since it specifies the password in cleartext (issue described for versions before 2.2.220).
H2 Database Engine web-based admin console (CLI) -webAdminPassword = do not pass passwords via this command-line argument (cleartext)
Event History
Frequently Asked Questions
What is the vulnerability ID of this H2 Database Engine vulnerability?
The vulnerability ID of this H2 Database Engine vulnerability is CVE-2022-45868.
What is the severity rating of CVE-2022-45868?
The severity rating of CVE-2022-45868 is high (CVSS score: 7.8).
How can the web-based admin console be started in H2 Database Engine?
The web-based admin console in H2 Database Engine can be started via the CLI with the argument -webAdminPassword.
Does CVE-2022-45868 allow the user to specify the password for the web admin console in cleartext?
Yes, CVE-2022-45868 allows the user to specify the password for the web admin console in cleartext.
Is there a fix available for CVE-2022-45868?
Yes, a fix for CVE-2022-45868 is available in version 2.2.220 of H2 Database Engine.