CVE Vulnerabilities

CVE-2022-0217

Improper Restriction of Recursive Entity References in DTDs ('XML Entity Expansion')

Published: Aug 26, 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:N/I:N/A:H
CVSS 2.x
RedHat/V2
RedHat/V3
Ubuntu
MEDIUM

It was discovered that an internal Prosody library to load XML based on libexpat does not properly restrict the XML features allowed in parsed XML data. Given suitable attacker input, this results in expansion of recursive entity references from DTDs (CWE-776). In addition, depending on the libexpat version used, it may also allow injections using XML External Entity References (CWE-611).

Weakness

The product uses XML documents and allows their structure to be defined with a Document Type Definition (DTD), but it does not properly control the number of recursive definitions of entities.

Affected Software

Name Vendor Start Version End Version
Prosody Prosody * 0.11.12 (excluding)
Prosody Ubuntu bionic *
Prosody Ubuntu hirsute *
Prosody Ubuntu impish *
Prosody Ubuntu kinetic *
Prosody Ubuntu lunar *
Prosody Ubuntu mantic *
Prosody Ubuntu trusty *
Prosody Ubuntu xenial *

Potential Mitigations

References