CVE-2021-23463H2database H2
Critical 9.1 No auth needed
Follow: this CVE · H2database · H2database H2 We alert you by email or Slack (account required).
- Priority
- 70
- CVSS 3.1
- 9.1
- EPSS
- 2.8% probability of exploitation in 30 days · percentile 87
- Auth required
- No
- Published
- Dec 10, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-611
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
What happens
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
- Apply the vendor's security update for H2.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Maven | com.h2database:h2 |
≥ 1.4.198 < 2.0.202 |
2.0.202 |
— |
Per OSV / GitHub Advisories (GHSA-7rpj-hg47-cx62). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| h2database | h2 | ≥ 1.4.198 < 2.0.202 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Broken Link
- github.com Exploit Issue Tracking Patch
- github.com Issue Tracking Patch Third Party Advisory
- security.netapp.com
- snyk.io Exploit Patch Third Party Advisory
- www.oracle.com Not Applicable