# CVE-2022-45868: Password exposure in H2 Database

Source: https://junglewise.ai/threats/cve-2022-45868-password-exposure-in-h2-database  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2022-11-23  
License: CC BY 4.0 with a link back

CVE-2022-45868 · Severity: low · CVSS 3.1 · Published 2022-11-23

Password exposure in H2 Database

Technologies: [com.h2database:h2 (Maven)](https://junglewise.ai/threats/technologies/com-h2database-h2). Vendors: [Maven](https://junglewise.ai/threats/vendors/maven).

## Quick answers

**Is CVE-2022-45868 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2022-45868 being exploited in the wild.

**How severe is CVE-2022-45868?** Low severity, with a CVSS score of 3.1, published 23 November 2022.

**Which products and versions are affected?** com.h2database:h2 (Maven) ECOSYSTEM:introduced=1.4.198,fixed=2.2.220.

**Is there a fix for CVE-2022-45868?** Yes. com.h2database:h2 (Maven): upgrade to 2.2.220 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2022-45868?** Check whether you run com.h2database:h2 (Maven) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- com.h2database:h2 (Maven): upgrade to 2.2.220 or later

  ```sh
  # set com.h2database:h2 to 2.2.220 in your pom.xml or build.gradle
  ```


## Affected products

- com.h2database:h2 (Maven) ECOSYSTEM:introduced=1.4.198,fixed=2.2.220

## Identifiers

- CVE-2022-45868
- GHSA-22wj-vf5f-wrvj

## Related threats

- [Arbitrary code execution in H2 Console](https://junglewise.ai/threats/cve-2022-23221-arbitrary-code-execution-in-h2-console)
- [RCE in H2 Console](https://junglewise.ai/threats/cve-2021-42392-rce-in-h2-console)
- [Improper Restriction of XML External Entity Reference in com.h2database:h2.](https://junglewise.ai/threats/cve-2021-23463-improper-restriction-of-xml-external-entity-reference-in-com)
