CVE-2022-0217
High · 7.5CVSS
7.5
EPSS
5.5%
Published
Aug 26, 2022
CISA due date
—
Cloudanix analysis
A bug in the way the system reads certain data files lets attackers overload the server or potentially peek at private information.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Library
- Class
- XXE
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
The XML parser based on libexpat fails to disable recursive entity expansion and external entity resolution, allowing crafted DTDs to trigger exponential memory/CPU growth (CWE-776) or external entity fetches (CWE-611).
Why it matters to the business
Attackers can remotely exhaust server resources causing denial of service, or in some configurations read local files and internal network resources, disrupting service availability and risking data exposure on affected Joomla installations.
How an attack unfolds
An unauthenticated attacker submits a malicious XML document containing recursive entity definitions or external entity references through any application feature that uses the vulnerable Prosody XML loader; the parser expands the entities, either consuming excessive resources or retrieving unauthorized content.
How to fix it
Upgrade joomla/joomla-cms to the commit bbdf775fbee26d275ce60ea466b778e4694210a1 or later; disable external entity processing and limit entity expansion in any custom XML handling until the update is applied.
How to confirm the fix worked
Confirm the presence of commit bbdf775fbee26d275ce60ea466b778e4694210a1 in the codebase, then re-test with known recursive-entity and XXE test cases to verify that expansion is rejected and no external fetches occur.
Typical attack path
- Identify an unauthenticated or low-privilege endpoint that accepts or processes XML data
- Craft an XML payload with a DTD containing recursive entities or external-entity references
- Submit the payload to the vulnerable parser
- Observe resource exhaustion (DoS) or receive responses containing file or network data
How to detect it
Search web-server and application logs for unusually large or malformed XML payloads, repeated entity declarations, or spikes in CPU/memory during XML parsing; correlate with external-entity fetch attempts in outbound traffic logs.
What your security team should do
- Apply the fixed commit bbdf775fbee26d275ce60ea466b778e4694210a1 to all Joomla instances without delay
- Review and harden any remaining XML parsing code to explicitly disable DTDs and external entities
- Monitor server resource usage and XML-processing CPU spikes for signs of exploitation
- Add web-application firewall rules that block or sanitize suspicious XML entity declarations
The record
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).
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:10 | prosody | 0 | 0.11.2-1+deb10u3 |
| Debian:11 | prosody | 0 | 0.11.9-2+deb11u1 |
| Debian:12 | prosody | 0 | 0.11.12-1 |
| Debian:13 | prosody | 0 | 0.11.12-1 |
| SUSE:Package Hub 15 SP3 | prosody | 0 | 0.11.12-bp153.2.12.1 |
| Ubuntu:16.04:LTS | prosody | 0 | No fix |
| Ubuntu:20.04:LTS | prosody | 0 | No fix |
| Ubuntu:22.04:LTS | prosody | 0 | No fix |
| Ubuntu:24.04:LTS | prosody | 0 | No fix |
| Ubuntu:24.10 | prosody | 0 | No fix |
| Ubuntu:25.04 | prosody | 0 | No fix |
| Ubuntu:25.10 | prosody | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | prosody | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | prosody | 0 | No fix |
| Ubuntu:Pro:20.04:LTS | prosody | 0 | No fix |
| openSUSE:Leap 15.3 | prosody | 0 | 0.11.12-bp153.2.12.1 |
| openSUSE:Tumbleweed | prosody | 0 | 0.11.12-1.1 |
Related vulnerabilities
- CVE-2018-10847 prosody before versions 0.10.2, 0.9.14 is vulnerable to an Authentication Bypass. Also affects prosody
- CVE-2026-89260 MoguBlog through 6.2 contains an XML external entity injection vulnerability in the… CWE-611
- CVE-2026-84941 An information disclosure vulnerability in the SAML Single Sign-On (SSO) functionality of… CWE-611
- CVE-2026-79572 An XXE (XML External Entity) vulnerability in the level-rule module of Distribution… CWE-611
- CVE-2026-19614 The API is prone to XML external entity (XXE) injection. CWE-611
- CVE-2026-71375 Improper restriction of XML external entity reference vulnerability in Cosminexus… CWE-611
- CVE-2026-76958 SAP Integration Suite does not sufficiently validate XML documents accepted from… CWE-611
- CVE-2026-17444 IBM App Connect Enterprise 13.0.1.0 through 13.0.8.1, and 12.0.1.0 through 12.0.12.28 and… CWE-611