CVE-2022-45868 json
Password exposure in H2 Database
published 3y ago modified last mo. also GHSA-22wj-vf5f-wrvj , EUVD-2022-7189
- cvss
- 8.4
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.3%
- EPSS 0.3% chance of exploitation in 30 days, percentile 25%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- maven com.h2database:h2 2.2.220
Is CVE-2022-45868 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
cisa ICSA-25-261-04 updated cvss 7.8
Multiple Open-Source Software Vulnerabilities in Hitachi Energy Asset Suite Product
-
Hitachi Energy Asset Suite <= 9.6.4.5affected: fixed in 9.7, mitigation
Facts from CISA's republication of the vendor's own advisory (CSAF); the linked advisory is the authoritative source. CISA notification · csaf
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- total
- Assessed
- last yr.
Exploit prediction
0.32% chance of exploitation in the next 30 days, higher than 25% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- sites.google.com https://sites.google.com/sonatype.com/vulnerabilities/sonatype-2022-6243 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 8.4 | CVSS:3.1/AC:L/AV:L/A:H/C:H/I:H/PR:N/S:U/UI:N |
| CNA | 3.1 | 8.4 | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| maven | com.h2database:h2 | >=1.4.198, <2.2.220 |
2.2.220 |
Classification
References
-
github.com
/h2database/h2database/pull/3833
web
-
github.com
/h2database/h2database/commit/581ed18ff9d6b3761d851620ed88a3994a351a0d
web
-
sites.google.com
/sonatype.com/vulnerabilities/sonatype-2022-6243
web, exploit, third-party-advisory
-
github.com
/h2database/h2database/blob/96832bf5a97cdc0adc1f2066ed61c54990d66ab5/h2/src/main/org/h2/server/web/WebServer.j
web, third-party-advisory
-
github.com
/h2database/h2database/issues/3686
web
-
github.com
/advisories/GHSA-22wj-vf5f-wrvj
advisory
-
github.com
/h2database/h2database/releases/tag/version-2.2.220
web
-
nvd.nist.gov
/vuln/detail/CVE-2022-45868
advisory
-
github.com
/h2database/h2database
package
Sources
- CVE List CVE-2022-45868
- GitHub Advisory GHSA-22wj-vf5f-wrvj
- NVD CVE-2022-45868
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.