Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2022-45868

HIGH 8.4PoCEPSS 16%

Password exposure in H2 Database

Also known as GHSA-22wj-vf5f-wrvj

Mitigation

  • Upgrade com.h2database:h2 to 2.2.220 or later.

Who should check

  • Projects that depend on Maven package com.h2database:h2 (>= 1.4.198, < 2.2.220)
  • Anyone running n/a (versions: see the vendor advisory)

Vulnerability facts

Affected
com.h2database:h2 >= 1.4.198, < 2.2.220
Fixed in
2.2.220
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
Yes: see the exploit references below
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
8.4 (v3.1, CNA)CVSS:3.1/AC:L/AV:L/A:H/C:H/I:H/PR:N/S:U/UI:NOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack complexity: Low
  • Attack vector: Local
  • Availability impact: High
  • Confidentiality impact: High
  • Integrity impact: High
  • Privileges required: None
  • Scope: Unchanged
  • User interaction: None
EPSS
0.30% chance of exploitation in 30 days (percentile 16, 2026-11-26)
CWE
CWE-312
Published
Modified

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.

Affected and fixed versions

Package / productAffectedFixedSource
Maven com.h2database:h2>= 1.4.198, < 2.2.2202.2.220osv
n/a——nvd

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2022-45868. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-45868.md
Affected: com.h2database:h2 >= 1.4.198, < 2.2.220
Fixed in: 2.2.220

Steps:
1. Search this machine and project for com.h2database:h2 (Maven), n/a: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2022-45868 being exploited?

There is no confirmed exploitation: CVE-2022-45868 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 0.30% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2022-45868?

High: CVSS 8.4 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

Which versions are affected by CVE-2022-45868?

com.h2database:h2 >= 1.4.198, < 2.2.220.

Is there a fix for CVE-2022-45868?

Yes. Fixed in 2.2.220. Upgrade com.h2database:h2 to 2.2.220 or later.

How do I check if I'm affected by CVE-2022-45868?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors