CWE
502
Advisory Published
CVE Published
Updated

CVE-2021-42392

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 SoftwareAffected VersionHow 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

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Reference Links

Frequently Asked Questions

  • What is CVE-2021-42392?

    CVE-2021-42392 is a vulnerability found in the h2 database that allows remote code execution.

  • How severe is CVE-2021-42392?

    CVE-2021-42392 has a severity rating of 9.8, which is considered critical.

  • How can I fix CVE-2021-42392?

    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.

  • Where can I find more information about CVE-2021-42392?

    You can find more information about CVE-2021-42392 on the GitHub security advisory page and the Red Hat security advisory page.

  • What is the Common Weakness Enumeration (CWE) for CVE-2021-42392?

    The Common Weakness Enumeration (CWE) for CVE-2021-42392 is CWE-502.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2024 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203