CVE-2013-4315
Django Directory Traversal via ssi template tag
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.
Exploit likelihood
What each source reports
NVD Score used
5.0
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.
- Record
CVE-2013-4315- CVSS 2.0
- 5.0 Medium
AV:N/AC:L/Au:N/C:P/I:N/A:N - Weakness
- CWE-22
- Updated
- 2026-11-02
CVE List No score
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.
- Record
CVE-2013-4315- Updated
- 2026-11-02
EUVDEUVD-2013-0008 No score
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.
- Record
EUVD-2013-0008- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-vjjp-9r83-22rc
8.7
Django Directory Traversal via ssi template tag
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.
- Record
GHSA-vjjp-9r83-22rc- CVSS 4.0
- 8.7 High
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N - CVSS 3.1
- 8.6 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N - Weakness
- CWE-22
- Updated
- 2026-11-02
OSVGHSA-vjjp-9r83-22rc
8.7
Django Directory Traversal via ssi template tag
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.
- Record
GHSA-vjjp-9r83-22rc- CVSS 4.0
- 8.7 High
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N - CVSS 3.1
- 8.6 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N - Weakness
- CWE-22
- Updated
- 2026-11-02
OSV No score
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.
- Record
CVE-2013-4315- Updated
- 2026-11-02
Show 4 moreShow less
OSVDEBIAN-CVE-2013-4315 No score
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.
- Record
DEBIAN-CVE-2013-4315- Updated
- 2026-11-02
OSVMGASA-2013-0283 No score
Updated python-django package fixes security vulnerability
Rainer Koirikivi discovered a directory traversal vulnerability with 'ssi' template tags in python-django, a high-level Python web development framework. It was shown that the handling of the 'ALLOWED_INCLUDE_ROOTS' setting, used to represent allowed prefixes for the {% ssi %} template tag, is vulnerable to a directory traversal attack, by specifying a file path which begins as the absolute path of a directory in 'ALLOWED_INCLUDE_ROOTS', and then uses relative paths to break free. To exploit this vulnerability an attacker must be in a position to alter templates on the site, or the site to be attacked must have one or more templates making use of the 'ssi' tag, and must allow some form of unsanitized user input to be used as an argument to the 'ssi' tag (CVE-2013-4315).
- Record
MGASA-2013-0283- Updated
- 2026-11-02
OSVMGASA-2013-0284 No score
Updated python-django package fixes multiple vulnerabilities
Updated python-django package fixes security vulnerabilities:
Rainer Koirikivi discovered a directory traversal vulnerability with 'ssi' template tags in python-django, a high-level Python web development framework. It was shown that the handling of the 'ALLOWED_INCLUDE_ROOTS' setting, used to represent allowed prefixes for the {% ssi %} template tag, is vulnerable to a directory traversal attack, by specifying a file path which begins as the absolute path of a directory in 'ALLOWED_INCLUDE_ROOTS', and then uses relative paths to break free. To exploit this vulnerability an attacker must be in a position to alter templates on the site, or the site to be attacked must have one or more templates making use of the 'ssi' tag, and must allow some form of unsanitized user input to be used as an argument to the 'ssi' tag (CVE-2013-4315).
Django before 1.4.8 allows for denial-of-service attacks through repeated submission of large passwords, tying up server resources in the expensive computation of the corresponding hashes (CVE-2013-1443).
- Record
MGASA-2013-0284- Updated
- 2026-11-02
OSVPYSEC-2013-20 No score
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.
- Record
PYSEC-2013-20- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
djangoPyPI |
1.4 up to 1.4.7 | 1.4.7 |
djangoPyPI |
1.5 up to 1.5.3 | 1.5.3 |
python-djangoDebian:12 |
before 1.5.3-1 | 1.5.3-1 |
python-djangoDebian:13 |
before 1.5.3-1 | 1.5.3-1 |
python-djangoDebian:14 |
before 1.5.3-1 | 1.5.3-1 |
python-djangoDebian:6.0 |
before 1.2.3-3+squeeze7, plus listed versions 1.2.3-31.2.3-3+squeeze11.2.3-3+squeeze21.2.3-3+squeeze31.2.3-3+squeeze51.2.3-3+squeeze6 |
1.2.3-3+squeeze7 |
python-djangoDebian:7 |
before 1.4.5-1+deb7u3, plus listed versions 1.4.5-11.4.5-1+deb7u11.4.5-1+deb7u2 |
1.4.5-1+deb7u3 |
djangoPyPI |
1.4 up to 1.4.7, plus listed versions 1.4.11.4.21.4.31.4.41.4.51.4.6 |
1.4.7 |
djangoPyPI |
1.5 up to 1.5.3, plus listed versions 1.5.11.5.2 |
1.5.3 |
python-djangoMageia:2 |
before 1.3.7-1.2.mga2 | 1.3.7-1.2.mga2 |
Show 4 moreShow less
| Package | Affected | Fixed |
|---|---|---|
python-djangoMageia:3 From an advisory covering 2 CVEs |
before 1.4.8-1.mga3 | 1.4.8-1.mga3 |
djangoPyPI |
1.4 up to 1.4.7, 1.5 up to 1.5.3, plus listed versions 1.4.11.4.21.4.31.4.41.4.51.4.61.5.11.5.2 |
1.4.71.5.3 |
Django14Red Hat:openstack:3::el6 From an advisory covering 2 CVEs |
before 0:1.4.8-1.el6ost | 0:1.4.8-1.el6ost |
Django14-docRed Hat:openstack:3::el6 From an advisory covering 2 CVEs |
before 0:1.4.8-1.el6ost | 0:1.4.8-1.el6ost |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2013-4315 is a medium vulnerability (CVSS 5.0) in Djangoproject Django, published September 11, 2013. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 3.27%, the 88th percentile. Fixed in django 1.4.7.
References
lists.opensuse.org/opensuse-updates/2013-10/msg00015.html
secunia.com/advisories/54772
rhn.redhat.com/errata/RHSA-2013-1521.html
djangoproject.com/weblog/2013/sep/10/security-releases-issued
secunia.com/advisories/54828
debian.org/security/2013/dsa-2755
Show 22 moreShow less
nvd.nist.gov/vuln/detail/CVE-2013-4315
github.com/django/django/commit/87d2750b39f6f2d54b7047225521a44dcd37e896
github.com/django/django/commit/988b61c550d798f9a66d17ee0511fb7a9a7f33ca
github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2013-20.yaml
github.com/advisories/GHSA-vjjp-9r83-22rc
security-tracker.debian.org/tracker/CVE-2013-4315
github.com/django/django
advisories.mageia.org/MGASA-2013-0283.html
bugs.mageia.org/show_bug.cgi?id=11217
advisories.mageia.org/MGASA-2013-0284.html
djangoproject.com/weblog/2013/sep/15/security
bugs.mageia.org/show_bug.cgi?id=11217.mga3
access.redhat.com/errata/RHSA-2013:1521
access.redhat.com/security/updates/classification
bugzilla.redhat.com/show_bug.cgi?id=1004969
bugzilla.redhat.com/show_bug.cgi?id=1016394
security.access.redhat.com/data/csaf/v2/advisories/2013/rhsa-2013_1521.json
access.redhat.com/security/cve/CVE-2013-4315
cve.org/CVERecord?id=CVE-2013-4315
access.redhat.com/security/cve/CVE-2013-6044
cve.org/CVERecord?id=CVE-2013-6044
nvd.nist.gov/vuln/detail/CVE-2013-6044