CVE-2015-2317
Vulnerability Summary
Timeline
Description
The utils.http.is_safe_url function in Django before 1.4.20, 1.5.x, 1.6.x before 1.6.11, 1.7.x before 1.7.7, and 1.8.x before 1.8c1 does not properly validate URLs, which allows remote attackers to conduct cross-site scripting (XSS) attacks via a control character in a URL, as demonstrated by a \x08javascript: URL.
CVSS Metrics
- v4.0•MEDIUM•Score: 5.3CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
- v3.1•MEDIUM•Score: 6.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- v2.0•MEDIUM•Score: 4.3AV:N/AC:M/Au:N/C:N/I:P/A:N
EPSS Trends
Current EPSS score: 2.88%• Percentile: 87%
Techniques & Countermeasures
- CWE-79•Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
Affected Systems
- canonical•ubuntu_linux
10.04 | 12.04 | 14.04 | 14.10
- debian•debian_linux
7.0
- djangoproject•django
≤ 1.4.19 | 1.5 | 1.5:alpha | 1.5:beta | 1.5.1 | 1.5.2 | 1.5.3 | 1.5.4 | 1.5.5 | 1.5.6 | 1.5.7 | 1.5.8 | 1.5.9 | 1.5.10 | 1.5.11 | 1.5.12 | 1.6 | 1.6:beta1 | 1.6:beta2 | 1.6:beta3 | 1.6:beta4 | 1.6.1 | 1.6.2 | 1.6.3 | 1.6.4 | 1.6.5 | 1.6.6 | 1.6.7 | 1.6.8 | 1.6.9 | 1.6.10 | 1.7:beta1 | 1.7:beta2 | 1.7:beta3 | 1.7:beta4 | 1.7:rc1 | 1.7:rc2 | 1.7:rc3 | 1.7.1 | 1.7.2 | 1.7.3 | 1.7.4 | 1.7.5 | 1.7.6 | 1.8.0
- fedoraproject•fedora
22
- opensuse•opensuse
13.2
- Unknown•Solaris
11.2
- PyPI•django
< 1.4.20 | ≥ 1.5, < 1.6.11 | ≥ 1.7, < 1.7.7 | ≥ 1.8a1, < 1.8c1 | ≥ 1.8a0, < 1.8c1
References (19)
- http://ubuntu.com/usn/usn-2539-1
- http://www.securityfocus.com/bid/73319
- http://www.debian.org/security/2015/dsa-3204
- http://lists.fedoraproject.org/pipermail/package-announce/2015-April/155421.html
- http://lists.opensuse.org/opensuse-updates/2015-09/msg00035.html
- http://www.oracle.com/technetwork/topics/security/bulletinapr2015-2511959.html
- http://www.mandriva.com/security/advisories?name=MDVSA-2015:195
- http://lists.opensuse.org/opensuse-updates/2015-04/msg00001.html
- http://lists.fedoraproject.org/pipermail/package-announce/2015-June/160263.html
- https://www.djangoproject.com/weblog/2015/mar/18/security-releases/
- https://nvd.nist.gov/vuln/detail/CVE-2015-2317
- https://github.com/django/django/commit/2342693b31f740a422abf7267c53b4e7bc487c1b
- https://github.com/django/django/commit/2a4113dbd532ce952308992633d802dc169a75f1
- https://github.com/django/django/commit/5510f070711540aaa8d3707776cd77494e688ef9
- https://github.com/django/django/commit/770427c2896a078925abfca2317486b284d22f04
- https://github.com/django/django
- https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2015-9.yaml
- https://web.archive.org/web/20200228131706/http://www.securityfocus.com/bid/73319
- https://www.djangoproject.com/weblog/2015/mar/18/security-releases