CVE-2021-42392

published 7 Jan 2022 · updated 4 Aug 2024

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

7.0HighEPSS 83%1 public exploits

A public exploit exists; no exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 83%. Fixed in *.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
h2database=1.1.000*

Exploit evidence

1 public sources

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2021-42392 severity on Zeptric[![CVE-2021-42392](https://zeptric.io/badge/cve/CVE-2021-42392.svg)](https://zeptric.io/cve/CVE-2021-42392)