XML external entity (XXE) injection in com.h2database:h2
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- High · None · High
- Fix status
- Partial Red Hat: 3 without a fix
Attack profile from CVSS 3.1 · NVD. Fix status from CNA, GitHub and Red Hat.
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | com.h2database:h2 | all versions; before 2.0.202 | 2.0.202 | Patch available | CNA |
| — | com.h2database:h2 (Maven) | 1.4.198 to before 2.0.202 | 2.0.202 | Patch available | GHSA-7rpj-hg47-cx62 |
- com.h2database:h2 Vendor— Affected all versions; before 2.0.202 Fixed in 2.0.202 Patch available CNA
- com.h2database:h2 (Maven) Vendor— Affected 1.4.198 to before 2.0.202 Fixed in 2.0.202 Patch available GHSA-7rpj-hg47-cx62
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:h2database:h2:*:*:*:*:*:*:*:* | 1.4.198 to before 2.0.202 | Vulnerable | h2database |
- cpe:2.3:a:h2database:h2:*:*:*:*:*:*:*:* Versions 1.4.198 to before 2.0.202 Vulnerable ·h2database
Remediation
- Fix · CNA com.h2database:h2 Fixed in 2.0.202
- Fix · GHSA-7rpj-hg47-cx62 com.h2database:h2 (Maven) Fixed in 2.0.202 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Integration Service Registry | Affected | No fix planned: Out of support scope |
| Red Hat build of Apicurio Registry 2 | Affected | No fix yet |
| Red Hat build of Quarkus | Affected | No fix yet |
Not affected: 1 product
- Red Hat Fuse 7
Timeline
- 2026-10-02 Threatist record created from CVE-2021-23463
- 2026-10-03 Alias added: GHSA-7rpj-hg47-cx62
References
Other 7
- https://github.com/h2database/h2database/commit/d83285fd2e48fb075780ee95badee6f5a15ea7f8%23diff-008c2e4462609982199cd83e7cf6f1d6b41296b516783f6752c44b9f15dc7bc3
- https://www.oracle.com/security-alerts/cpuapr2022.html
- https://security.netapp.com/advisory/ntap-20230818-0010/
- https://github.com/h2database/h2database/pull/3199#issuecomment-1002830390
- https://github.com/boris-unckel/h2database/commit/f9ad6aef2bfa59eba2b4d3e7c4c32d2cce8e8b05
- https://github.com/h2database/h2database
- https://security.netapp.com/advisory/ntap-20230818-0010
More h2database H2 vulnerabilities
- TI-2022-07362 H2 Console before 2.1.210 allows remote attackers to execute arbitrary code via a… CVSS 3.1CRITICAL 9.8
- TI-2021-18806 Deserialization of untrusted data in h2database h2 CVSS 3.1CRITICAL 9.8
- TI-2022-22667 The web-based admin console in H2 Database Engine before 2.2.220 can be started via the… CVSS 3.1HIGH 8.4
- TI-2018-07125 H2 1.4.197, as used in Datomic before 0.9.5697 and other products, allows remote code… CVSS 3.1HIGH 8.8
- TI-2018-10278 An issue was discovered in H2 1.4.197. CVSS 3.1MEDIUM 6.5
Sources
- CVE-2021-23463 · CVE Program
- CVE-2021-23463 · NVD
- FIRST EPSS
- GHSA-7rpj-hg47-cx62 · GitHub Advisory Database · CC BY 4.0
- CVE-2021-23463 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences