{"id":"CVE-2021-23463","aliases":["CVE-2021-23463","GHSA-7rpj-hg47-cx62","SNYK-JAVA-COMH2DATABASE-1769238"],"related":[],"kind":"vulnerability","state":"published","title":"XML External Entity (XXE) Injection","summary":"The package com.h2database:h2 from 1.4.198 and before 2.0.202 are vulnerable to XML External Entity (XXE) Injection via the org.h2.jdbc.JdbcSQLXML class object, when it receives parsed string data from org.h2.jdbc.JdbcResultSet.getSQLXML() method. If it executes the getSource() method when the parameter is DOMSource.class it will trigger the vulnerability.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"The package com.h2database:h2 from 1.4.198 and before 2.0.202 are vulnerable to XML External Entity (XXE) Injection via the org.h2.jdbc.JdbcSQLXML class object, when it receives parsed string data from org.h2.jdbc.JdbcResultSet.getSQLXML() method. If it executes the getSource() method when the parameter is DOMSource.class it will trigger the vulnerability.","source":"cvelist"},{"lang":"en","text":"H2 is an embeddable RDBMS written in Java. The package com.h2database:h2 from 1.4.198 and before 2.0.202 are vulnerable to XML External Entity (XXE) Injection via the org.h2.jdbc.JdbcSQLXML class object, when it receives parsed string data from org.h2.jdbc.JdbcResultSet.getSQLXML() method. If it executes the getSource() method when the parameter is DOMSource.class it will trigger the vulnerability.","format":"markdown","source":"ghsa"},{"lang":"es","text":"El paquete com.h2database:h2 a partir de la versión 1.4.198 y antes de la versión 2.0.202 son vulnerables a la Inyección de Entidades Externas XML (XXE) a través del objeto de clase org.h2.jdbc.JdbcSQLXML, cuando recibe datos de cadena analizados del método org.h2.jdbc.JdbcResultSet.getSQLXML(). Si ejecuta el método getSource() cuando el parámetro es DOMSource.class activará la vulnerabilidad","source":"nvd"}],"published":"2021-12-10T20:00:14.594Z","modified":"2026-07-08T06:49:52.637Z","severity":{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H/E:P","score":8.1,"rating":"HIGH"},"severities":[{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H/E:P","score":8.1,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","score":8.1,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","score":9.1,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:P/I:N/A:P","score":6.4,"rating":"MEDIUM"}],"cwes":["CWE-611"],"affected":[{"ranges":[{"type":"custom","introduced":"0","fixed":"unspecified","status":"affected"},{"type":"custom","introduced":"unspecified","fixed":"2.0.202","status":"affected"}],"product":"com.h2database:h2","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"1.4.198","status":"affected","fixed":"2.0.202"}],"ecosystem":"Maven","package":"com.h2database:h2","purl":"pkg:maven/com.h2database/h2","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"1.4.198","fixed":"2.0.202"}],"vendor":"h2database","product":"h2","cpe":"cpe:2.3:a:h2database:h2:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/h2database/h2database/issues/3195","tags":["exploit","issue-tracking","patch","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://snyk.io/vuln/SNYK-JAVA-COMH2DATABASE-1769238","tags":["exploit","patch","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/h2database/h2database/pull/3199","tags":["issue-tracking","patch","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/h2database/h2database/commit/d83285fd2e48fb075780ee95badee6f5a15ea7f8%23diff-008c2e4462609982199cd83e7cf6f1d6b41296b516783f6752c44b9f15dc7bc3","tags":["broken-link","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://www.oracle.com/security-alerts/cpuapr2022.html","tags":["not-applicable","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://security.netapp.com/advisory/ntap-20230818-0010/","tags":["x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23463","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/h2database/h2database/pull/3199#issuecomment-1002830390","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/boris-unckel/h2database/commit/f9ad6aef2bfa59eba2b4d3e7c4c32d2cce8e8b05","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/h2database/h2database","tags":["web"],"sources":["ghsa"]},{"url":"https://security.netapp.com/advisory/ntap-20230818-0010","tags":["web"],"sources":["ghsa"]}],"credits":["threedr3am of SecCoder Security Lab"],"assigner":"snyk","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-23463","url":"https://www.cve.org/CVERecord?id=CVE-2021-23463","licence":"CVE Terms of Use","modified":"2024-09-17T03:47:43.105Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-7rpj-hg47-cx62","url":"https://github.com/advisories/GHSA-7rpj-hg47-cx62","licence":"CC-BY-4.0","modified":"2026-07-08T06:49:52.637Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-23463","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23463","licence":"Public domain","modified":"2026-06-17T03:38:47.610Z"}],"updatedAt":"2026-11-25T22:58:05.927Z","epss":{"score":0.02787,"percentile":0.87154,"date":"2026-11-30T12:00:22.000Z"}}