Skip to main content
← All vulnerabilities
CVE-2021-42392GHSA-H376-J262-VHQ6

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.

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 2.0.206
2 proofs of concept on GitHub, 1 Nuclei template

Summary

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.

Timeline

  1. CVE published
  2. Record last updated
  3. EPSS reached 10%

    FIRST estimates at least a 10% chance of exploitation in the next 30 days

Affected versions

  • h2database h2

    From 1.1.000

  • com.h2database:h2Maven

    From 1.1.100 · fixed in 2.0.206

References 10

GitHub · h2database/h2database

lists.debian.org

debian.org

oracle.com

jfrog.com

security.netapp.com

secpod.com

GitHub · projectdiscovery/nuclei-templates

GitHub · Be-Innova/CVE-2021-42392-exploit-lab

GitHub · cybersecurityworks553/CVE-2021-42392-Detect