{"id":"CVE-2021-42392","published":"2022-01-07T00:00:00Z","modified":"2024-08-04T03:30:38Z","title":"The org.h2.util.JdbcUtils.getConnection method of the H2 database takes as parameters the class name of the driver and…","vendor":"h2database","product":"h2","tier":"core","eol":null,"affectedVersions":[{"vendor":"h2database","product":"h2","versions":[">= 1.1.000"]}],"description":{"text":"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.","provenance":"source","from":"CVE.org"},"summary":{"text":"The org.h2.util.JdbcUtils.getConnection method in the H2 database product accepts a driver class name and a database URL from callers, and does not restrict them to safe values. An attacker can supply a JNDI driver name and a URL pointing to an LDAP or RMI server so that the database connects there and triggers remote code execution, and the H2 Console provides a path to this that requires no authentication.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-10-29T07:15:01Z"},"cvss":null,"epss":{"score":0.83176,"percentile":0.99677,"date":"2026-11-02","provenance":"source"},"kev":null,"vulncheckKev":null,"exploited":false,"otx":{"pulseCount":3,"pulses":[{"name":"ACTUALIZACION | Oracle Critical Patch Update Advisory - January 2024","url":"https://otx.alienvault.com/pulse/65c0fd55c5d3c780a06aa227","created":"2024-02-05"},{"name":"Oracle Critical Patch Update Advisory - April 2022","url":"https://otx.alienvault.com/pulse/626040216e00cd388b1b9180","created":"2022-04-20"},{"name":"Cisco Talos Intelligence Group - Threat Source Newsletter (Jan. 20, 2022)","url":"https://otx.alienvault.com/pulse/61ea61526b9c7cabd995eb79","created":"2022-01-21"}],"provenance":"machine"},"cwes":[{"id":"CWE-502","name":"Deserialization of Untrusted Data"}],"references":[{"url":"https://github.com/h2database/h2database/security/advisories/GHSA-h376-j262-vhq6","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2022/02/msg00017.html","tags":["mailing-list"]},{"url":"https://www.debian.org/security/2022/dsa-5076","tags":["vendor-advisory"]},{"url":"https://www.oracle.com/security-alerts/cpuapr2022.html","tags":[]},{"url":"https://jfrog.com/blog/the-jndi-strikes-back-unauthenticated-rce-in-h2-database-console/","tags":[]},{"url":"https://security.netapp.com/advisory/ntap-20220119-0001/","tags":[]},{"url":"https://www.secpod.com/blog/log4shell-critical-remote-code-execution-vulnerability-in-h2database-console/","tags":[]}],"techniques":[],"reports":[],"affected":[{"ecosystem":"Maven","package":"com.h2database:h2","vulnerableRanges":[">=1.1.100, <2.0.206"],"patched":["2.0.206"],"from":["GHSA-h376-j262-vhq6"],"provenance":"source"}],"advisories":[{"id":"GHSA-h376-j262-vhq6","url":"https://github.com/advisories/GHSA-h376-j262-vhq6","severity":"CRITICAL","ecosystem":"Maven","package":"com.h2database:h2","vulnerableRanges":[">=1.1.100, <2.0.206"],"patched":["2.0.206"],"provenance":"source","from":"GHSA"}],"euvd":{"id":"EUVD-2022-0610","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2022-0610","exploited":false,"exploitedSince":null,"provenance":"source"},"exploits":[],"exploitSources":{"pocGithub":{"count":1,"skipped":1,"earliest":"2022-01-09","earliestUrl":"https://github.com/cybersecurityworks553/CVE-2021-42392-Detect","repos":[{"name":"cybersecurityworks553/CVE-2021-42392-Detect","url":"https://github.com/cybersecurityworks553/CVE-2021-42392-Detect","stars":7,"created":"2022-01-09"}]},"nuclei":[{"id":"CVE-2021-42392","name":"H2 Database Console - JNDI Injection RCE","severity":"critical","path":"http/cves/2021/CVE-2021-42392.yaml","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2021/CVE-2021-42392.yaml"}],"first":{"date":"2022-01-09","source":"PoC-in-GitHub","url":"https://github.com/cybersecurityworks553/CVE-2021-42392-Detect"},"provenance":"source"},"exploitRefs":[],"flow":[],"timeline":[{"date":"2022-01-07","kind":"published","label":"Published (CVE.org)","url":"https://www.cve.org/CVERecord?id=CVE-2021-42392","provenance":"source"},{"date":"2022-01-09","kind":"exploit-public","label":"First public exploit: PoC-in-GitHub","url":"https://github.com/cybersecurityworks553/CVE-2021-42392-Detect","provenance":"source"}],"speed":{"daysToPublicExploit":2,"firstExploitFrom":"PoC-in-GitHub","daysToKev":null},"priority":{"score":26.3,"factors":[{"name":"In a KEV catalog","points":0.0,"detail":"not listed"},{"name":"Recent KEV listing","points":0.0,"detail":"not listed"},{"name":"Known ransomware use","points":0.0,"detail":"not known"},{"name":"EPSS percentile","points":19.94,"detail":"percentile 0.9968"},{"name":"Named in threat reports","points":0.0,"detail":"0 reports"},{"name":"Public exploit code","points":5.0,"detail":"1 PoC-in-GitHub repo; 1 nuclei template"},{"name":"Mentioned in OTX pulses","points":1.37,"detail":"3 pulses"},{"name":"CVSS severity","points":0.0,"detail":"no CVSS"},{"name":"End-of-life product","points":0.0,"detail":"supported or unknown"}]},"lineage":{"packageHistory":[{"cve":"CVE-2021-23463","published":"2021-12-10","fixed":"2.0.202","kev":false,"link":{"from":"CVE-2021-23463","to":"CVE-2021-42392","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:com.h2database:h2","fromFixed":"2.0.202","toFixed":"2.0.206","daysApart":28}]}},{"cve":"CVE-2021-42392","published":"2022-01-07","fixed":"2.0.206","kev":false},{"cve":"CVE-2022-23221","published":"2022-01-19","fixed":"2.1.210","kev":false,"link":{"from":"CVE-2021-42392","to":"CVE-2022-23221","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:com.h2database:h2","fromFixed":"2.0.206","toFixed":"2.1.210","daysApart":12}]}},{"cve":"CVE-2022-45868","published":"2022-11-23","fixed":"2.2.220","kev":false}],"package":"Maven:com.h2database:h2"}}