First published: Tue Jan 04 2022(Updated: )
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.
Credit: reefs@jfrog.com
Affected Software | Affected Version | How to fix |
---|---|---|
H2database H2 | >=1.1.000<=2.0.204 | |
Debian Debian Linux | =9.0 | |
Debian Debian Linux | =10.0 | |
Debian Debian Linux | =11.0 | |
Oracle Communications Cloud Native Core Policy | =1.15.0 | |
redhat/eap7-h2database | <0:1.4.197-2.redhat_00004.1.el8ea | 0:1.4.197-2.redhat_00004.1.el8ea |
redhat/eap7-h2database | <0:1.4.197-2.redhat_00004.1.el7ea | 0:1.4.197-2.redhat_00004.1.el7ea |
redhat/rh-sso7-keycloak | <0:15.0.8-1.redhat_00001.1.el7 | 0:15.0.8-1.redhat_00001.1.el7 |
redhat/rh-sso7-keycloak | <0:15.0.8-1.redhat_00001.1.el8 | 0:15.0.8-1.redhat_00001.1.el8 |
redhat/rh-sso7-keycloak | <0:18.0.3-1.redhat_00001.1.el7 | 0:18.0.3-1.redhat_00001.1.el7 |
redhat/rh-sso7-keycloak | <0:18.0.3-1.redhat_00001.1.el8 | 0:18.0.3-1.redhat_00001.1.el8 |
redhat/rh-sso7 | <0:1-5.el9 | 0:1-5.el9 |
redhat/rh-sso7-javapackages-tools | <0:6.0.0-7.el9 | 0:6.0.0-7.el9 |
redhat/rh-sso7-keycloak | <0:18.0.3-1.redhat_00001.1.el9 | 0:18.0.3-1.redhat_00001.1.el9 |
debian/h2database | 1.4.197-4+deb10u1 1.4.197-4+deb11u1 2.1.214-1 2.2.220-1 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
(Appears in the following advisories)
CVE-2021-42392 is a vulnerability found in the h2 database that allows remote code execution.
CVE-2021-42392 has a severity rating of 9.8, which is considered critical.
To fix CVE-2021-42392, you should update the h2 database to version 2.0.206 or apply the recommended patch provided by Red Hat.
You can find more information about CVE-2021-42392 on the GitHub security advisory page and the Red Hat security advisory page.
The Common Weakness Enumeration (CWE) for CVE-2021-42392 is CWE-502.