#VU61937 Deserialization of Untrusted Data in H2 Database - CVE-2021-42392
Published: April 6, 2022 / Updated: July 10, 2022
Vulnerability identifier: #VU61937
Vulnerability risk: Critical
CVSSv4.0: 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/E:P/U:Red
CVE-ID: CVE-2021-42392
CWE-ID: CWE-502
Exploitation vector: Remote access
Exploit availability:
Public exploit is available
Vulnerable software:
H2 Database
H2 Database
Software vendor:
H2 Database Engine
H2 Database Engine
Description
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.
Remediation
Install updates from vendor's website.