# CVE-2021-42392: RCE in H2 Console

Source: https://junglewise.ai/threats/cve-2021-42392-rce-in-h2-console  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2022-01-06  
License: CC BY 4.0 with a link back

CVE-2021-42392 · Severity: low · CVSS 3.1 · Published 2022-01-06

RCE in H2 Console

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-2021-42392 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2021-42392 being exploited in the wild.

**How severe is CVE-2021-42392?** Low severity, with a CVSS score of 3.1, published 6 January 2022.

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

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

**Am I affected by CVE-2021-42392?** 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.0.206 or later

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


## Affected products

- com.h2database:h2 (Maven) ECOSYSTEM:introduced=1.1.100,fixed=2.0.206

## Identifiers

- CVE-2021-42392
- GHSA-h376-j262-vhq6

## Related threats

- [Password exposure in H2 Database](https://junglewise.ai/threats/cve-2022-45868-password-exposure-in-h2-database)
- [Arbitrary code execution in H2 Console](https://junglewise.ai/threats/cve-2022-23221-arbitrary-code-execution-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)
