PyPA Advisory Database
PYSEC-2026-802
XML External Entity (XXE) in Django
Details
The XML libraries for Python as used in OpenStack Keystone Essex and Folsom, Django, and possibly other products allow remote attackers to read arbitrary files via an XML external entity declaration in conjunction with an entity reference, aka an XML External Entity (XXE) attack.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| PyPI | django | From 1.3.0 before 1.3.6 (fixed in 1.3.6) From 1.4.0 before 1.4.4 (fixed in 1.4.4) |
References
- https://nvd.nist.gov/vuln/detail/CVE-2013-1665
- https://github.com/django/django/commit/1c60d07ba23e0350351c278ad28d0bd5aa410b40
- https://github.com/django/django/commit/d19a27066b2247102e65412aa66917aff0091112
- https://bugs.launchpad.net/keystone/+bug/1100279
- http://blog.python.org/2013/02/announcing-defusedxml-fixes-for-xml.html
- http://bugs.python.org/issue17239
- http://lists.openstack.org/pipermail/openstack-announce/2013-February/000078.html
- http://rhn.redhat.com/errata/RHSA-2013-0657.html
- http://rhn.redhat.com/errata/RHSA-2013-0658.html
- http://rhn.redhat.com/errata/RHSA-2013-0670.html
- http://ubuntu.com/usn/usn-1757-1
- http://www.debian.org/security/2013/dsa-2634
- http://www.openwall.com/lists/oss-security/2013/02/19/2
- http://www.openwall.com/lists/oss-security/2013/02/19/4
- https://pypi.org/project/django
- https://github.com/advisories/GHSA-x64m-686f-fmm3