CVE-2012-4520
MEDIUM 6.4CVSS 2.0Django Allows Arbitrary URL Generation
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.
- Published
- 18 Nov 2012
- Last modified
- 16 Jun 2026
- Assigned by
- secalert@redhat.com
- NVD status
- Modified
- Weakness
- CWE-20
- Also known as
- GHSA-2655-q453-22f9PYSEC-2012-7
- Sources
- NVDJSONOSV GHSA-2655-q453-22f9JSONOSV PYSEC-2012-7JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N | |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 6.4 | AV:N/AC:L/Au:N/C:P/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | djangoproject | djangocpe:2.3:a:djangoproject:django:1.3:*:*:*:*:*:*:* |
= 1.3 | |
| NVD | djangoproject | djangocpe:2.3:a:djangoproject:django:1.3:alpha1:*:*:*:*:*:* |
= 1.3 | |
| NVD | djangoproject | djangocpe:2.3:a:djangoproject:django:1.3:beta1:*:*:*:*:*:* |
= 1.3 | |
| NVD | djangoproject | djangocpe:2.3:a:djangoproject:django:1.3.1:*:*:*:*:*:*:* |
= 1.3.1 | |
| NVD | djangoproject | djangocpe:2.3:a:djangoproject:django:1.3.2:*:*:*:*:*:*:* |
= 1.3.2 | |
| NVD | djangoproject | djangocpe:2.3:a:djangoproject:django:1.3.3:*:*:*:*:*:*:* |
= 1.3.3 | |
| NVD | djangoproject | djangocpe:2.3:a:djangoproject:django:1.4:*:*:*:*:*:*:* |
= 1.4 | |
| NVD | djangoproject | djangocpe:2.3:a:djangoproject:django:1.4.1:*:*:*:*:*:*:* |
= 1.4.1 | |
| OSV | PyPI | django | >= 1.3, < 1.3.4 | 1.3.4 |
| OSV | PyPI | django | >= 1.4, < 1.4.2 | 1.4.2 |
| OSV | PyPI | django | >= 1.3, < 1.3.4; >= 1.4, < 1.4.2 | 1.3.4, 1.4.2 |
References
- http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=691145 · WEB
- http://lists.fedoraproject.org/pipermail/package-announce/2012-October/090666.html · WEB
- http://lists.fedoraproject.org/pipermail/package-announce/2012-October/090904.html · WEB
- http://lists.fedoraproject.org/pipermail/package-announce/2012-October/090970.html · WEB
- http://secunia.com/advisories/51033 · Vendor Advisory, ADVISORY
- http://secunia.com/advisories/51314 · Vendor Advisory, ADVISORY
- http://securitytracker.com/id?1027708 · WEB
- http://ubuntu.com/usn/usn-1632-1 · WEB
- http://ubuntu.com/usn/usn-1757-1 · WEB
- http://www.debian.org/security/2013/dsa-2634 · WEB, ADVISORY
- http://www.openwall.com/lists/oss-security/2012/10/30/4 · WEB
- http://www.osvdb.org/86493 · WEB
- https://bugzilla.redhat.com/show_bug.cgi?id=865164 · WEB, REPORT
- https://github.com/django/django/commit/92d3430f12171f16f566c9050c40feefb830a4a3 · WEB, FIX
- https://github.com/django/django/commit/9305c0e12d43c4df999c3301a1f0c742264a657e · WEB, FIX
- https://github.com/django/django/commit/b45c377f8f488955e0c7069cad3f3dd21910b071 · WEB, FIX
- https://www.djangoproject.com/weblog/2012/oct/17/security/ · Patch, Vendor Advisory, WEB, ARTICLE
- https://nvd.nist.gov/vuln/detail/CVE-2012-4520 · ADVISORY
- https://www.openwall.com/lists/oss-security/2012/10/30/4 · WEB
- https://www.debian.org/security/2013/dsa-2634 · WEB
- https://web.archive.org/web/20140417023920/http://securitytracker.com/id?1027708 · WEB
- https://ubuntu.com/usn/usn-1757-1 · WEB
- https://ubuntu.com/usn/usn-1632-1 · WEB
- https://lists.fedoraproject.org/pipermail/package-announce/2012-October/090970.html · WEB
- https://lists.fedoraproject.org/pipermail/package-announce/2012-October/090904.html · WEB
- https://lists.fedoraproject.org/pipermail/package-announce/2012-October/090666.html · WEB
- https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2012-7.yaml · WEB
- https://github.com/django/django · PACKAGE
- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=691145 · WEB
- https://github.com/advisories/GHSA-2655-q453-22f9 · ADVISORY
History
- 25 Nov 2026 20:17 UTC · NVD: first stored (published 18 Nov 2012)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 18 Nov 2012)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 17 May 2022)