Vulnerabilities · 2012 · Djangoproject
CVE-2012-4520
Djangoproject Django vulnerability
The django.http.HttpRequest.get_host function in Django 1.3.x before 1.3.4 and 1.4.x before 1.4.2 allows remote attackers to generate and display arbitrary URLs via crafted username and password Host header values.
Affected products
Django. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Djangoproject Django runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- secunia.com/advisories/51033 · Vendor Advisory
- secunia.com/advisories/51314 · Vendor Advisory
- www.djangoproject.com/weblog/2012/oct/17/security/ · Patch
- bugs.debian.org/cgi-bin/bugreport.cgi?bug=691145
- lists.fedoraproject.org/pipermail/package-announce/2012-October/090666.html
- lists.fedoraproject.org/pipermail/package-announce/2012-October/090904.html
- lists.fedoraproject.org/pipermail/package-announce/2012-October/090970.html
- securitytracker.com/id?1027708
- nvd.nist.gov/vuln/detail/CVE-2012-4520
- cve.org/CVERecord?id=CVE-2012-4520
More vulnerabilities in Djangoproject products
CVE-2026-1312CVE-2026-1287CVE-2026-1285CVE-2026-1207CVE-2025-64460CVE-2025-64459CVE-2025-64458CVE-2025-59682All 137
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.