CVE-2021-42392
H2database H2 vulnerability
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.
High priority: this vulnerability is rated critical and can be attacked over the network without a login.
Affected products
H2, Debian Linux, Communications Cloud Native Core Policy. The exact versions are in the references.
What to do now
- Check your exposureFind out whether H2database H2 runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- jfrog.com/blog/the-jndi-strikes-back-unauthenticated-rce-in-h2-database-console/ · Exploit
- www.oracle.com/security-alerts/cpuapr2022.html · Patch
- github.com/h2database/h2database/security/advisories/GHSA-h376-j262-vhq6 · Mitigation
- lists.debian.org/debian-lts-announce/2022/02/msg00017.html · Third Party Advisory
- security.netapp.com/advisory/ntap-20220119-0001/ · Third Party Advisory
- www.debian.org/security/2022/dsa-5076 · Third Party Advisory
- www.secpod.com/blog/log4shell-critical-remote-code-execution-vulnerability-in-h2database-c
- nvd.nist.gov/vuln/detail/CVE-2021-42392
- cve.org/CVERecord?id=CVE-2021-42392
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.