CVE Vulnerabilities

CVE-2021-23463

Improper Restriction of XML External Entity Reference

Published: Dec 10, 2021 | Modified: Nov 21, 2024
CVSS 3.x
9.1
CRITICAL
Source:
NVD
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
CVSS 2.x
6.4 MEDIUM
AV:N/AC:L/Au:N/C:P/I:N/A:P
RedHat/V2
RedHat/V3
6.8 IMPORTANT
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:H
Ubuntu
MEDIUM
root.io logo minimus.io logo echo.ai logo

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.

Weakness

The product processes an XML document that can contain XML entities with URIs that resolve to documents outside of the intended sphere of control, causing the product to embed incorrect documents into its output.

Affected Software

NameVendorStart VersionEnd Version
H2H2database1.4.198 (including)2.0.202 (excluding)
H2databaseUbuntubionic*
H2databaseUbuntuhirsute*
H2databaseUbuntuimpish*
H2databaseUbuntukinetic*
H2databaseUbuntulunar*
H2databaseUbuntutrusty*
H2databaseUbuntuupstream*
H2databaseUbuntuxenial*

Potential Mitigations

References