CVE-2022-45868: Infoleak

Published Nov 23, 2022
·
Updated

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

2 affected componentsFixes available
maven/com.h2database:h2>=1.4.198<2.2.220
2.2.220
h2database H2<=2.1.214

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade maven/com.h2database:h2 to a version that resolves this vulnerability.

    Fixed in 2.2.220
  2. Upgrade

    Upgrade h2databaseengine/web-admin-console to a version that resolves this vulnerability.

    Fixed in 2.2.220
  3. 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

Nov 23, 2022
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
DescriptionSeverity
Disputed
09:15 PM
Data Sourced
via NVD·09:15 PM
DescriptionSeverityWeaknessAffected Software
Advisory Published
via GitHub·09:30 PM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the vulnerability ID of this H2 Database Engine vulnerability?

The vulnerability ID of this H2 Database Engine vulnerability is CVE-2022-45868.

2

What is the severity rating of CVE-2022-45868?

The severity rating of CVE-2022-45868 is high (CVSS score: 7.8).

3

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.

4

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.

5

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203