CVE-2021-23463 json
XML External Entity (XXE) Injection
published 2021-12-10 4 y ago modified 2026-07-08 4 mo ago also GHSA-7rpj-hg47-cx62 , EUVD-2021-2477
- cvss
- 8.1
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 2.8%
- EPSS 2.8% chance of exploitation in 30 days, percentile 86%
- public exploits
- 0
- none known
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.
Patch / fix
- maven com.h2database:h2 2.0.202
- n/a com.h2database:h2 2.0.202
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2021-23463 updated cvss 6.8
h2database: XXE injection vulnerability
-
Red Hat build of Apicurio Registry 2 com.h2database.h2 com.h2database.h2 Red Hat build of Quarkus com.h2database.h2 com.h2database.h2affected: no fix available
-
Red Hat Integration Service Registry com.h2database.h2 com.h2database.h2affected: no fix planned “Out of support scope”
-
Red Hat Fuse 7 com.h2database.h2 com.h2database.h2not affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
2.79% chance of exploitation in the next 30 days, higher than 86% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/h2database/h2database/issues/3195 referenced PoC, tagged "exploit" by a source, unverified
- snyk.io https://snyk.io/vuln/SNYK-JAVA-COMH2DATABASE-1769238 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 8.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H/E:P |
| CNA | 3.1 | 8.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H |
| NVD | 3.1 | 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H |
| NVD | 2.0 | 6.4 | AV:N/AC:L/Au:N/C:P/I:N/A:P |
| GitHub | 3.1 | 8.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| maven | com.h2database:h2 | >=1.4.198, <2.0.202 |
2.0.202 |
Affected products
- n/a com.h2database:h2
Classification
- Weakness
-
- CWE-611 Improper Restriction of XML External Entity Reference
References
-
github.com
/h2database/h2database/pull/3199
web, issue-tracking, patch, third-party-advisory
-
github.com
/h2database/h2database/commit/d83285fd2e48fb075780ee95badee6f5a15ea7f8%23diff-008c2e4462609982199cd83e7cf6f1d6
web, broken-link
-
github.com
/h2database/h2database/issues/3195
web, exploit, issue-tracking, patch, third-party-advisory
-
snyk.io
/vuln/SNYK-JAVA-COMH2DATABASE-1769238
web, exploit, patch, third-party-advisory
-
github.com
/h2database/h2database/pull/3199#issuecomment-1002830390
web
-
github.com
/boris-unckel/h2database/commit/f9ad6aef2bfa59eba2b4d3e7c4c32d2cce8e8b05
web
-
oracle.com
/security-alerts/cpuapr2022.html
web, not-applicable
- security.netapp.com /advisory/ntap-20230818-0010/
-
nvd.nist.gov
/vuln/detail/CVE-2021-23463
advisory
-
github.com
/h2database/h2database
web
-
security.netapp.com
/advisory/ntap-20230818-0010
web
Sources
- CVE List CVE-2021-23463
- GitHub Advisory GHSA-7rpj-hg47-cx62
- NVD CVE-2021-23463
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.