SB2022040617 - Multiple vulnerabilities in H2 Database



SB2022040617 - Multiple vulnerabilities in H2 Database

Published: April 6, 2022 Updated: November 6, 2026

Security Bulletin ID SB2022040617
CSH Severity
Critical
Patch available
YES
Number of vulnerabilities 2
Exploitation vector Remote access
Highest impact Code execution

Breakdown by Severity

Critical 50% High 50%
  • Low
  • Medium
  • High
  • Critical

Description

This security bulletin contains information about 2 vulnerabilities.


1) Deserialization of Untrusted Data (CVE-ID: CVE-2021-42392)

CWE-ID: CWE-502 - Deserialization of Untrusted Data

CVSSv4: 9.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to insecure input validation when processing serialized data within the org.h2.util.JdbcUtils.getConnection method. A remote attacker can pass a JNDI driver name and a URL leading to a LDAP or RMI servers and execute arbitrary code on the system.


2) Code Injection (CVE-ID: N/A)

CWE-ID: CWE-94 - Improper Control of Generation of Code ('Code Injection')

CVSSv4: 9.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]


The vulnerability allows an unauthenticated remote attacker to execute arbitrary code in the Java process hosting H2 Console.

The vulnerability exists due to H2 Console permitting custom classes to be loaded from remote servers through JNDI when remote access is explicitly enabled without access protection. An unauthenticated remote attacker can supply an LDAP URL referencing an attacker-controlled server to load a malicious class and execute its code.


Remediation

Install update from vendor's website.