CVE-2013-1664: XML Entity Expansion (XEE) in Django
5
CVSS Score
Basic Information
CVE ID
GHSA ID
EPSS Score
0.87341%
CWE
Published
5/17/2022
Updated
5/21/2024
KEV Status
No
Technology
Python
Technical Details
CVSS Vector
AV:N/AC:L/Au:N/C:N/I:N/A:P
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
Django | pip | >= 1.3.0, < 1.3.6 | 1.3.6 |
Django | pip | >= 1.4.0, < 1.4.4 | 1.4.4 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from Django's XML deserializer not restricting entity processing. The commit 1c60d07 introduces DefusedExpatParser to harden parsing, indicating the original code lacked these safeguards. The Deserializer's init method invoked pulldom.parse with the default (insecure) ExpatParser, making it vulnerable to XEE. The patch replaces this with a custom parser that blocks dangerous XML features, confirming the original functions' vulnerability.