Description
Directory traversal vulnerability in Django 1.4.x before 1.4.7, 1.5.x before 1.5.3, and 1.6.x before 1.6 beta 3 allows remote attackers to read arbitrary files via a file path in the ALLOWED_INCLUDE_ROOTS setting followed by a .. (dot dot) in a ssi template tag.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | python-django | 1.5.3-1 | — |
| Debian 13 | python-django | 1.5.3-1 | — |
| Debian 12 | python-django | 1.5.3-1 | — |
| Debian 7 | python-django | 1.4.5-1+deb7u3 | DSA-2755-1 |
| Debian 6.0 | python-django | 1.2.3-3+squeeze7 | DSA-2755-1 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Red Hat OpenStack 3 | Django14 +1 | 1.4.8-1.el6ost | RHSA-2013:1521 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | django | >= 1.4, < 1.4.7 | 1.4.7 | GHSA-vjjp-9r83-22rc |
| PyPI | django | >= 1.5, < 1.5.3 | 1.5.3 | GHSA-vjjp-9r83-22rc |
| PyPI | django | >= 1.4, < 1.4.7 · >= 1.5, < 1.5.3 | 1.4.7, 1.5.3 | PYSEC-2013-20 |
Advisories 2
- DSA-2755-1 python-django - directory traversal Debian Security (DSA / DLA) · Mar 9, 2026
- RHSA-2013:1521 Red Hat Security Advisory: python-django security update Red Hat Security Advisories (RHSA) · Jan 14, 2026
References
- openSUSE-SU-2013:1541 vendor-advisory
- 54772 third-party-advisory
- RHSA-2013:1521 vendor-advisory
- https://www.djangoproject.com/weblog/2013/sep/10/security-releases-issued/
- 54828 third-party-advisory
- DSA-2755 vendor-advisory