CVEvulnerability

CVE-2021-42392

9.8 CRITICAL Published 2022-01-10 Modified 2026-06-17 Official page ↗
Status
Modified
Published
2022-01-10
Last modified
2026-06-17
Assigner
[email protected]
CVSS 3.1 ([email protected])
9.8 CRITICAL — CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS 2.0 ([email protected])
10.0 HIGH — AV:N/AC:L/Au:N/C:C/I:C/A:C
Weaknesses
CWE-502

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.

Affected configurations

• h2database h2 (>= 1.1.000 <= 2.0.204) • debian debian linux 9.0 • debian debian linux 10.0 • debian debian linux 11.0 • oracle communications cloud native core policy 1.15.0

Related

Weakness · CWE (1)

  • CWE-502 Deserialization of Untrusted Data weakness

References