Live threats

All CVEs / H2database

CVE-2021-23463H2database H2

Critical 9.1 No auth needed

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for H2.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
h2databaseh2≥ 1.4.198 < 2.0.202

Official sources

References

Links published by the sources. Open them with care.