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
| Ecosystem | Package | Affected versions |
|---|---|---|
| Ubuntu:Pro:16.04:LTS | h2database | All versions before 1.4.191-1ubuntu0.1~esm1 (fixed in 1.4.191-1ubuntu0.1~esm1) |
| Ubuntu:Pro:18.04:LTS | h2database | All versions before 1.4.196-2ubuntu0.1~esm1 (fixed in 1.4.196-2ubuntu0.1~esm1) |
| Ubuntu:20.04:LTS | h2database | All versions before 1.4.197-4+deb10u1build0.20.04.1 (fixed in 1.4.197-4+deb10u1build0.20.04.1) |
| Ubuntu:22.04:LTS | h2database | All versions before 2.1.210+really1.4.197-1 (fixed in 2.1.210+really1.4.197-1) |
References
- https://ubuntu.com/security/CVE-2021-42392
- https://github.com/h2database/h2database/security/advisories/GHSA-h376-j262-vhq6
- https://jfrog.com/blog/the-jndi-strikes-back-unauthenticated-rce-in-h2-database-console/
- https://ubuntu.com/security/notices/USN-5365-1
- https://www.cve.org/CVERecord?id=CVE-2021-42392
- https://ubuntu.com/security/notices/USN-6834-1