# CVE-2021-42392: RCE in H2 Console

- Severity: Critical 9.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 83.2%, higher than 99% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-01-06T23:55:09.000Z
- Modified: 2026-07-08T06:29:10.179Z
- Also known as: GHSA-h376-j262-vhq6
- Weaknesses: CWE-502
- Assigned by: JFROG

## Description

The org.h2.util.JdbcUtils.getConnection method of the H2 database takes as parameters the class name of the driver and URL of the database. An attacker may pass a JNDI driver name and a URL leading to a LDAP or RMI servers, causing remote code execution. This can be exploited through various attack vectors, most notably through the H2 Console which leads to unauthenticated remote code execution.

(As written by CVE List.)

## Affected

- h2database h2: from 1.1.000 before *; from 1.1.000 up to 2.0.204
- com.h2database:h2 (Maven): from 1.1.100 before 2.0.206
- debian debian_linux: 9.0; 10.0; 11.0
- oracle communications_cloud_native_core_policy: 1.15.0

## Every score

- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 10.0 High `AV:N/AC:L/Au:N/C:C/I:C/A:C`

## References

- <https://jfrog.com/blog/the-jndi-strikes-back-unauthenticated-rce-in-h2-database-console/> (exploit, technical-description, vendor-advisory)
- <https://github.com/h2database/h2database/security/advisories/GHSA-h376-j262-vhq6> (mitigation, third-party-advisory, web)
- <https://lists.debian.org/debian-lts-announce/2022/02/msg00017.html> (mailing-list, third-party-advisory, web)
- <https://www.debian.org/security/2022/dsa-5076> (third-party-advisory, vendor-advisory, web)
- <https://www.oracle.com/security-alerts/cpuapr2022.html> (patch, third-party-advisory, web)
- <https://security.netapp.com/advisory/ntap-20220119-0001/> (third-party-advisory)
- <https://www.secpod.com/blog/log4shell-critical-remote-code-execution-vulnerability-in-h2database-console/>
- <https://nvd.nist.gov/vuln/detail/CVE-2021-42392> (advisory)
- <https://github.com/h2database/h2database> (package)
- <https://github.com/h2database/h2database/releases/tag/version-2.0.206> (web)
- <https://jfrog.com/blog/the-jndi-strikes-back-unauthenticated-rce-in-h2-database-console> (web)
- <https://security.netapp.com/advisory/ntap-20220119-0001> (web)
- <https://www.secpod.com/blog/log4shell-critical-remote-code-execution-vulnerability-in-h2database-console> (web)

## Sources

- CVE List: [CVE-2021-42392](https://www.cve.org/CVERecord?id=CVE-2021-42392), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-h376-j262-vhq6](https://github.com/advisories/GHSA-h376-j262-vhq6), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2021-42392](https://nvd.nist.gov/vuln/detail/CVE-2021-42392), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-42392 · Whole record: https://cve.day/CVE-2021-42392.json · Rebuilt by cve.day 2026-11-25T22:58:06.440Z
