CVE-2013-6044
The is_safe_url function in utils/http.py in Django 1.4.x before 1.4.6, 1.5.x before 1.5.2, and 1.6 before beta 2 treats a URL's scheme as safe even if it is not HTTP or HTTPS, which might introduce cross-site scripting (XSS) or other vulnerabilities into Django applications that use this function, as demonstrated by "the login view in django.contrib.auth.views" and the javascript: scheme.
What to do
Fixed builds are available from Debian, PyPI: see the table below for the fixed version per release.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Debian 14 | python-django | Fixed | 1.5.2-1 | DEBIAN-CVE-2013-6044 |
| Debian 13 | python-django | Fixed | 1.5.2-1 | DEBIAN-CVE-2013-6044 |
| Debian 12 | python-django | Fixed | 1.5.2-1 | DEBIAN-CVE-2013-6044 |
| PyPI library | django | Fixed | 1.5.2 | GHSA-9cwg-mhxf-hh59 |
What the vendor says
As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
Vendor advisories:
- http://lists.opensuse.org/opensuse-updates/2013-10/msg00015.html (vendor-advisory)
- http://rhn.redhat.com/errata/RHSA-2013-1521.html (vendor-advisory)
- http://www.debian.org/security/2013/dsa-2740 (vendor-advisory)
References
- http://www.securityfocus.com/bid/61777
- http://www.securitytracker.com/id/1028915
- http://lists.opensuse.org/opensuse-updates/2013-10/msg00015.html
- https://github.com/django/django/commit/ec67af0bd609c412b76eaa4cc89968a2a8e5ad6a
- http://secunia.com/advisories/54476
- http://rhn.redhat.com/errata/RHSA-2013-1521.html
- http://seclists.org/oss-sec/2013/q3/369
- https://www.djangoproject.com/weblog/2013/aug/13/security-releases-issued
- https://exchange.xforce.ibmcloud.com/vulnerabilities/86437
- https://github.com/django/django/commit/ae3535169af804352517b7fea94a42a1c9c4b762
- https://github.com/django/django/commit/1a274ccd6bc1afbdac80344c9b6e5810c1162b5f
- http://seclists.org/oss-sec/2013/q3/411
- http://www.debian.org/security/2013/dsa-2740
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.