Home / H2database / H2 / CVE-2022-45868
CVE-2022-45868: is it exploited, and which versions of H2database H2 are affected and fixed?
CVE-2022-45868 is a sensitive data stored in clear text vulnerability in H2database H2. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 11:08 UTC). Affected: com.h2database:h2 from 1.4.198 before 2.2.220 (GitHub advisory GHSA-22wj-vf5f-wrvj). Fixed in 2.2.220 (GitHub advisory GHSA-22wj-vf5f-wrvj). Severity: High (8.4, CVSS 3.1, from mitre).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 11:08 UTC, CVE record November 19, 2026, 07:13 UTC and NVD November 19, 2026, 07:43 UTC.
Disputed: a party (often the vendor) disputes that this is a vulnerability. The record is kept as published.
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.
From the CVE record by mitre, last updated November 19, 2024, 20:58 UTC.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| Maven | com.h2database:h2 | >= 1.4.198, < 2.2.220 | 2.2.220 | GHSA-22wj-vf5f-wrvj |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated July 3, 2024. Summary: Password exposure in H2 Database.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| h2database | h2 | through 2.1.214 | application |
NVD analysis (status Modified), last modified June 17, 2026, 05:10 UTC.
How severe is CVE-2022-45868?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 8.4 | CVSS 3.1 | CVSS:3.1/AC:L/AV:L/A:H/C:H/I:H/PR:N/S:U/UI:N | mitre |
| High 7.8 | CVSS 3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2022-45868 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: poc; automatable: no; technical impact: total (CISA ADP, November 19, 2024)
- EPSS
- 0.33% probability of exploitation activity in the next 30 days, percentile 28.3 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-312 Cleartext Storage of Sensitive Information
- CWE-200 Exposure of Sensitive Information to an Unauthorized Actor
Where are the vendor advisories and references?
- https://sites.google.com/sonatype.com/vulnerabilities/sonatype-2022-6243
- https://github.com/h2database/h2database/blob/96832bf5a97cdc0adc1f2066ed61c54990d66ab5/h2/src/main/org/h2/server/web/WebServer.java#L346-L347
- https://github.com/h2database/h2database/issues/3686
- https://github.com/advisories/GHSA-22wj-vf5f-wrvj
- https://github.com/h2database/h2database/pull/3833
- https://github.com/h2database/h2database/releases/tag/version-2.2.220
When was it published, and where is the official record?
- Reserved
- November 23, 2022
- Published
- November 23, 2022, 00:00 UTC
- CVE record updated
- November 19, 2024, 20:58 UTC by mitre
- NVD
- Modified, last modified June 17, 2026, 05:10 UTC
- Last checked
- CVE list November 19, 2026, 07:13 UTC; NVD November 19, 2026, 07:43 UTC; KEV December 3, 2026, 11:08 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect H2?
- Jan 19, 2022CVE-2022-23221 H2database H2: argument injection
- Jan 7, 2022CVE-2021-42392 h2database h2: deserialization of untrusted data
- Jul 24, 2018CVE-2018-14335 H2database H2: link following (a symlink lets an attacker reach other files)
- Apr 11, 2018CVE-2018-10054 Cognitect Datomic: improper input validation disputed
Questions about CVE-2022-45868
Is CVE-2022-45868 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 11:08 UTC. FIRST's EPSS gives it a 0.33% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of H2database H2 are affected by CVE-2022-45868?
com.h2database:h2 from 1.4.198 before 2.2.220, per the GitHub advisory GHSA-22wj-vf5f-wrvj. The tables above give every range the sources list.
Which version fixes CVE-2022-45868?
2.2.220, per the GitHub advisory GHSA-22wj-vf5f-wrvj. Check the vendor's advisory before you rely on it.
How severe is CVE-2022-45868?
High (8.4, CVSS 3.1, from mitre). The severity table above shows each score with its source.
Where is the official record of CVE-2022-45868?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.