CVE-2021-42392

CRITICALCVSS 9.8/10EPSS 63.21%

Last modified

CVE-2021-42392 is a critical-severity vulnerability rated 9.8/10 on the CVSS scale. 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. EPSS estimates a 63.21% chance of exploitation in the next 30 days.

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.

Metrics

CVSS 3.1
9.8/10

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

EPSS Probability
63.21%

99.1th percentile

Probability of exploitation in the next 30 days. Learn more

Weakness Enumeration

Affected Software

VendorProductVersions
H2databaseH2>= 1.1.000, <= 2.0.204
DebianDebian Linux9.0
DebianDebian Linux10.0
DebianDebian Linux11.0
OracleCommunications Cloud Native Core Policy1.15.0

References

Timeline

Published
Last Modified
Status
Modified

Frequently Asked Questions

What is CVE-2021-42392?
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.
How severe is CVE-2021-42392?
CVE-2021-42392 has a CVSS score of 9.8/10 (CRITICAL severity). The EPSS model estimates a 63.21% probability of exploitation in the next 30 days.
How do I fix CVE-2021-42392?
Check the vendor references and advisories linked above for patched versions and mitigation guidance. You can also run a Strix scan to test if your systems are affected.

Are you affected by CVE-2021-42392?

Run a free Strix scan to check your systems for this vulnerability.

Scan your code now

Source: NVD / NIST