ADVISORIES

Ubuntu CVE Tracker

UBUNTU-CVE-2021-42392

Details

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 packages

EcosystemPackageAffected versions
Ubuntu:Pro:16.04:LTSh2database
All versions before 1.4.191-1ubuntu0.1~esm1 (fixed in 1.4.191-1ubuntu0.1~esm1)
Ubuntu:Pro:18.04:LTSh2database
All versions before 1.4.196-2ubuntu0.1~esm1 (fixed in 1.4.196-2ubuntu0.1~esm1)
Ubuntu:20.04:LTSh2database
All versions before 1.4.197-4+deb10u1build0.20.04.1 (fixed in 1.4.197-4+deb10u1build0.20.04.1)
Ubuntu:22.04:LTSh2database
All versions before 2.1.210+really1.4.197-1 (fixed in 2.1.210+really1.4.197-1)

References