CVE Vulnerabilities

CVE-2022-2414

Improper Restriction of XML External Entity Reference

Published: Jul 29, 2022 | Modified: Nov 21, 2024
CVSS 3.x
7.5
HIGH
Source:
NVD
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
CVSS 2.x
RedHat/V2
RedHat/V3
7.5 IMPORTANT
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Ubuntu
MEDIUM

Access to external entities when parsing XML documents can lead to XML external entity (XXE) attacks. This flaw allows a remote attacker to potentially retrieve the content of arbitrary files by sending specially crafted HTTP requests.

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
Dogtagpki Dogtagpki 10.5.18 (including) 10.5.18 (including)
Dogtagpki Dogtagpki 10.7.4 (including) 10.7.4 (including)
Dogtagpki Dogtagpki 10.8.3 (including) 10.8.3 (including)
Dogtagpki Dogtagpki 10.11.2 (including) 10.11.2 (including)
Dogtagpki Dogtagpki 10.12.4 (including) 10.12.4 (including)
Dogtagpki Dogtagpki 11.0.5 (including) 11.0.5 (including)
Dogtagpki Dogtagpki 11.1.0 (including) 11.1.0 (including)
Red Hat Certificate System 9.7 RedHat pki-core-0:10.5.18-24.el7pki *
Red Hat Enterprise Linux 7 RedHat pki-core-0:10.5.18-24.el7_9 *
Red Hat Enterprise Linux 8 RedHat pki-core:10.6-8070020220726172732.6e5cea50 *
Red Hat Enterprise Linux 8.2 Advanced Update Support RedHat pki-core:10.6-8020020221118110959.bbc64e6e *
Red Hat Enterprise Linux 8.2 Telecommunications Update Service RedHat pki-core:10.6-8020020221118110959.bbc64e6e *
Red Hat Enterprise Linux 8.2 Update Services for SAP Solutions RedHat pki-core:10.6-8020020221118110959.bbc64e6e *
Red Hat Enterprise Linux 8.4 Extended Update Support RedHat pki-core:10.6-8040020221216154854.17df0a3f *
Red Hat Enterprise Linux 8.6 Extended Update Support RedHat pki-core:10.6-8060020230411223433.60523a7b *
Red Hat Enterprise Linux 9 RedHat pki-core-0:11.0.6-2.el9_0 *
Dogtag-pki Ubuntu bionic *
Dogtag-pki Ubuntu esm-apps/bionic *
Dogtag-pki Ubuntu esm-apps/focal *
Dogtag-pki Ubuntu esm-apps/jammy *
Dogtag-pki Ubuntu esm-apps/xenial *
Dogtag-pki Ubuntu focal *
Dogtag-pki Ubuntu impish *
Dogtag-pki Ubuntu jammy *
Dogtag-pki Ubuntu kinetic *
Dogtag-pki Ubuntu lunar *
Dogtag-pki Ubuntu xenial *

Extended Description

XML documents optionally contain a Document Type Definition (DTD), which, among other features, enables the definition of XML entities. It is possible to define an entity by providing a substitution string in the form of a URI. The XML parser can access the contents of this URI and embed these contents back into the XML document for further processing. By submitting an XML file that defines an external entity with a file:// URI, an attacker can cause the processing application to read the contents of a local file. For example, a URI such as “file:///c:/winnt/win.ini” designates (in Windows) the file C:\Winnt\win.ini, or file:///etc/passwd designates the password file in Unix-based systems. Using URIs with other schemes such as http://, the attacker can force the application to make outgoing requests to servers that the attacker cannot reach directly, which can be used to bypass firewall restrictions or hide the source of attacks such as port scanning. Once the content of the URI is read, it is fed back into the application that is processing the XML. This application may echo back the data (e.g. in an error message), thereby exposing the file contents.

Potential Mitigations

References