Clear-text Password Vulnerability in H2 Database Engine

h2database Updated 02 Oct 2025

Summary

23/11/2022
N/A
No i
High
7.8

CVE-2022-45868: 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. Affects h2database versions < 66185fbfde24fbe5b2adf06fdaae4f5ffb178813. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

The H2 Database Engine is an open-source relational database management system written in Java. It provides a web-based admin console for managing the database. The vulnerability in question allows the web admin console password to be specified in cleartext via the command-line interface (CLI). This means that a local user or an attacker with local access can discover the password by listing processes and their arguments.

Vulnerability Detail

The vulnerability (CVE-2022-45868) arises from the ability to start the web-based admin console with the argument -webAdminPassword, which exposes the password in cleartext. While the vendor argues that passing passwords on the command line is not a vulnerability, it can still pose a security risk. The issue was fixed in version 2.2.220 of the H2 Database Engine.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

There is no specific workaround mentioned for this vulnerability.

Conclusion

The clear-text password vulnerability in the H2 Database Engine's web-based admin console can be mitigated by upgrading to version 2.2.220 or later. It is important to follow best practices and avoid passing passwords on the command line. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for h2database →

Share this vulnerability

FAQ

The vulnerability allows an attacker with local access to discover the web admin console password, potentially compromising the security of the database.

No, this vulnerability affects the H2 Database Engine across multiple operating systems.

No, this vulnerability requires local access to the system.

There are no known instances of this vulnerability being exploited in the wild.

The CVSS score of this vulnerability is 7.8, indicating a high severity.

Related vulnerabilities

Recent vulnerabilities recorded for h2database.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback