{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2021-42392","id":"CVE-2021-42392","title":"RCE in H2 Console","description":"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.","descriptionLong":"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.","published":"2022-01-07T00:00:00.000Z","updated":"2026-10-20T10:55:00.202629941Z","reserved":"2021-10-14T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"JFROG","metric":{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"NVD"},"metrics":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"NVD"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"OSV"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"GitHub"},{"version":"2.0","score":10,"vector":"AV:N/AC:L/Au:N/C:C/I:C/A:C","rating":"critical","source":"NVD"}],"rating":"critical","products":["h2database h2"],"affectedProducts":[{"vendor":"h2database","product":"h2","defaultStatus":null,"versions":[{"version":"1.1.000","status":"affected","lessThan":"*","versionType":"custom"}],"platforms":[]}],"packages":[{"ecosystem":"Maven","name":"com.h2database:h2","purl":"pkg:maven/com.h2database/h2","ranges":[">=1.1.100 <2.0.206"],"fixed":["2.0.206"],"advisory":"GHSA-h376-j262-vhq6"}],"cwes":["CWE-502"],"aliases":["GHSA-h376-j262-vhq6"],"references":[{"url":"https://github.com/h2database/h2database/security/advisories/GHSA-h376-j262-vhq6","tags":["x_transferred","Mitigation","Third Party Advisory","advisory","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2022/02/msg00017.html","tags":["mailing-list","x_transferred","Mailing List","Third Party Advisory","advisory","web"]},{"url":"https://www.debian.org/security/2022/dsa-5076","tags":["vendor-advisory","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://www.oracle.com/security-alerts/cpuapr2022.html","tags":["x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://jfrog.com/blog/the-jndi-strikes-back-unauthenticated-rce-in-h2-database-console/","tags":["x_transferred","Exploit","Technical Description","Vendor Advisory","evidence"]},{"url":"https://security.netapp.com/advisory/ntap-20220119-0001/","tags":["x_transferred","Third Party Advisory","advisory"]},{"url":"https://www.secpod.com/blog/log4shell-critical-remote-code-execution-vulnerability-in-h2database-console/","tags":["x_transferred","article"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-42392","tags":["advisory"]},{"url":"https://github.com/h2database/h2database","tags":["package"]},{"url":"https://github.com/h2database/h2database/releases/tag/version-2.0.206","tags":["web"]},{"url":"https://jfrog.com/blog/the-jndi-strikes-back-unauthenticated-rce-in-h2-database-console","tags":["web"]},{"url":"https://security.netapp.com/advisory/ntap-20220119-0001","tags":["web"]},{"url":"https://www.secpod.com/blog/log4shell-critical-remote-code-execution-vulnerability-in-h2database-console","tags":["web"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.83176,"epssPercentile":0.99683,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2021-42392","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-42392","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2021-42392","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-h376-j262-vhq6","ok":true,"note":"GHSA-h376-j262-vhq6"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2021-42392","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":["EPSS 83% with CVSS 9.8"],"attention":null}