Every CVE Search/ Get API key

CVE-2013-4315

Django Directory Traversal via ssi template tag

5.0 MediumFix available

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

3.27%Up 2.0 points since Feb 4, 2022
90%50%10%1%

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 MediumAV: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 HighCVSS: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 HighCVSS: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 HighCVSS: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 HighCVSS: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

Affected packages
PackageAffectedFixed
django
PyPI
1.4 up to 1.4.7
1.4.7
django
PyPI
1.5 up to 1.5.3
1.5.3
python-django
Debian:12
before 1.5.3-1
1.5.3-1
python-django
Debian:13
before 1.5.3-1
1.5.3-1
python-django
Debian:14
before 1.5.3-1
1.5.3-1
python-django
Debian: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-django
Debian: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
django
PyPI
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
django
PyPI
1.5 up to 1.5.3, plus listed versions
1.5.11.5.2
1.5.3
python-django
Mageia:2
before 1.3.7-1.2.mga2
1.3.7-1.2.mga2
Show 4 moreShow less
Affected packages
PackageAffectedFixed
python-django
Mageia:3
From an advisory covering 2 CVEs
before 1.4.8-1.mga3
1.4.8-1.mga3
django
PyPI
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
Django14
Red Hat:openstack:3::el6
From an advisory covering 2 CVEs
before 0:1.4.8-1.el6ost
0:1.4.8-1.el6ost
Django14-doc
Red Hat:openstack:3::el6
From an advisory covering 2 CVEs
before 0:1.4.8-1.el6ost
0:1.4.8-1.el6ost

History

History
RecordedChangedSources
affected, facts
aliasesEUVD
first indexedCVE 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

Show 22 moreShow less
MoveEnter Open