H2 Database Console - JNDI Injection RCE
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 via the H2 web console (versions before 2.0.206 / 1.4.198 with the console enabled). References: https://jfrog.com/blog/the-jndi-strikes-back-unauthenticated-rce-in-h2-database-console/ https://github.com/advisories/GHSA-h376-j262-vhq6 https://github.com/h2database/h2database/commit/b24aa46f48904ce64443f8f4353d70a2eed09037 https://nvd.nist.gov/vuln/detail/CVE-2021-42392 https://github.com/vulhub/vulhub/tree/master/h2database/CVE-2021-42392 Remediation: Upgrade H2 database to version 2.0.206 or later, and disable the web console (spring.h2.console.enabled=false) or restrict access to it.
10 assets checked · domain, subdomain, ipv4