Skip to main content
Public proof of conceptFix available

CVE-2022-45868

A public proof of concept exists; no exploitation attested.

  • Published2022-11-23
  • WeaknessCWE-312

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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.

Timeline

dates in UTC
  1. 2022-11-2321:15CVE publishedNVD

Versions per branch

NVD · OSV
H2database h2
BranchAffectedFixed in
2.1≤ 2.1.214no fix published
h2
BranchAffectedFixed in
2.2≥ 1.4.198, < 2.2.2202.2.220

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • com.h2database:h2TuxCare:Mavenfrom 1.4.200 · fixed in 1.4.200-tuxcare.1
  • com.h2database:h2TuxCare:Mavenfrom 2.1.210 · fixed in 2.1.210-tuxcare.1
  • com.h2database:h2Root:Mavenall versions · fixed in 2.1.214-aikido.1
  • com.h2database:h2Root:Mavenall versions · fixed in 2.1.214-aikido.2
  • com.h2database:h2Red Hat Lightwell:Mavenall versions · fixed in 2.2.219.rhlw-00001
  • eco-java-gradle-8.2Chainguardall versions · no fixed version listedand 2 other packages
  • gradle-8Wolfiall versions · fixed in 0
  • gradle-8Chainguardall versions · fixed in 0

5 more package ranges on OSV.dev

Vendor advisories

  • ICSA-25-261-04 CISA1 known affected

    Multiple Open-Source Software Vulnerabilities in Hitachi Energy Asset Suite Product

    Asset Suite versions 9.6.4.5 and prior

Full record on NVD

Fix

  1. Vendor fix CISA ICSA-25-261-04 · 1 productUpgrade to version 9.7
  2. Mitigation from the vendor CISA ICSA-25-261-04 · 1 productApply general mitigation factors

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

  • CISA-ADPSSVC decisionpoc2024-11-19
  • CNACVSS 3.18.4known since 2026-10-23
  • NVDCVSS 3.17.8read 2026-10-23
  • NVDweakness (CWE)CWE-312read 2026-10-23
  • FIRST EPSSEPSS score0.3 %2026-11-09
  • OSVaffected packages—
  • GitHub AdvisoriesadvisoryHIGH2022-11-23

Identifiers

Technical details

CVSS v3 Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Published
2022-11-23
Last Modified
2026-06-17
NVD status
Modified
GitHub Advisory
GHSA-22wj-vf5f-wrvj

Frequently asked questions

What is 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. 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.

Is CVE-2022-45868 actively exploited?

A proof-of-concept exploit exists for CVE-2022-45868, but active exploitation has not been confirmed at this time.

What is the CVSS score for CVE-2022-45868?

CVE-2022-45868 has a CVSS v3 base score of 7.8 (HIGH severity), with vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.

Running gradle-8? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website lookups · 250 API requests/month

Sources for this record