# CVE-2021-23463: XML External Entity (XXE) Injection

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.1
- **CVSS:** 8.1 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H/E:P`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: None; Availability impact: High; E: P
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** Yes (see exploit references)
- **Remote exploitation:** Remote, login needed
- **EPSS:** 2.79% (percentile 87, 2026-11-26)
- **CWE:** CWE-611
- **Aliases:** GHSA-7rpj-hg47-cx62, SNYK-JAVA-COMH2DATABASE-1769238
- **Published:** 2021-12-10T20:00:14.594Z
- **Modified:** 2026-07-08T06:49:52.637Z

## Who should check

- Projects that depend on Maven package com.h2database:h2 (\>= 1.4.198, \< 2.0.202)
- Anyone running com.h2database:h2 \< unspecified; \>= unspecified, \< 2.0.202

## Description

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.

## Affected and fixed versions

- Maven `com.h2database:h2`: affected \>= 1.4.198, \< 2.0.202; fixed 2.0.202 (osv)
- com.h2database:h2: \< unspecified; \>= unspecified, \< 2.0.202 (cvelist)

## Mitigation

- Upgrade com.h2database:h2 to 2.0.202 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2021-23463. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2021-23463.md
Affected: com.h2database:h2 >= 1.4.198, < 2.0.202
Fixed in: 2.0.202

Steps:
1. Search this machine and project for com.h2database:h2 (Maven), com.h2database:h2: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2021-23463 being exploited?

There is no confirmed exploitation: CVE-2021-23463 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 2.79% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2021-23463?

High: CVSS 8.1 (v3.1, scored by CNA). Remote, login needed.

### Which versions are affected by CVE-2021-23463?

com.h2database:h2 \>= 1.4.198, \< 2.0.202.

### Is there a fix for CVE-2021-23463?

Yes. Fixed in 2.0.202. Upgrade com.h2database:h2 to 2.0.202 or later.

### How do I check if I'm affected by CVE-2021-23463?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2021-23463>
- patch: <https://github.com/h2database/h2database/pull/3199>
- patch: <https://github.com/h2database/h2database/commit/d83285fd2e48fb075780ee95badee6f5a15ea7f8%23diff-008c2e4462609982199cd83e7cf6f1d6b41296b516783f6752c44b9f15dc7bc3>
- patch: <https://github.com/h2database/h2database/pull/3199#issuecomment-1002830390>
- patch: <https://github.com/boris-unckel/h2database/commit/f9ad6aef2bfa59eba2b4d3e7c4c32d2cce8e8b05>
- exploit: <https://github.com/h2database/h2database/issues/3195>
- exploit: <https://snyk.io/vuln/SNYK-JAVA-COMH2DATABASE-1769238>
- other: <https://www.oracle.com/security-alerts/cpuapr2022.html>
- other: <https://security.netapp.com/advisory/ntap-20230818-0010/>
- other: <https://github.com/h2database/h2database>
- other: <https://security.netapp.com/advisory/ntap-20230818-0010>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2021-23463>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-7rpj-hg47-cx62> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2021-23463> · JSON: <https://flawdb.com/api/v1/entries/CVE-2021-23463>
