Name | CVE-2021-42392 |
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. |
Source | CVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
References | DLA-2923-1, DSA-5076-1 |
Debian Bugs | 1003894 |
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|---|---|---|
h2database (PTS) | bullseye (security), bullseye | 1.4.197-4+deb11u1 | fixed |
bookworm | 2.1.214-1 | fixed | |
sid, trixie | 2.2.220-1 | fixed |
The information below is based on the following data on fixed versions.
Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
---|---|---|---|---|---|---|
h2database | source | stretch | 1.4.193-1+deb9u1 | DLA-2923-1 | ||
h2database | source | buster | 1.4.197-4+deb10u1 | DSA-5076-1 | ||
h2database | source | bullseye | 1.4.197-4+deb11u1 | DSA-5076-1 | ||
h2database | source | (unstable) | 2.1.210-1 | 1003894 |
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/
Fixed by https://github.com/h2database/h2database/commit/41dd2a4cf89da9dd18239debbf73f88da6184ec7
https://github.com/h2database/h2database/commit/956c6241868332c5b440f5d55ea8fdc1e51ae4fd