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

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

Name Vendor Start Version End Version
H2 H2database 1.4.198 (including) 2.0.202 (excluding)
H2database Ubuntu bionic *
H2database Ubuntu hirsute *
H2database Ubuntu impish *
H2database Ubuntu kinetic *
H2database Ubuntu lunar *
H2database Ubuntu trusty *
H2database Ubuntu upstream *
H2database Ubuntu xenial *

Potential Mitigations

References