CVE-2012-4520 json
Django Allows Arbitrary URL Generation
published 2012-11-18 13 y ago modified 2026-06-16 4 mo ago also GHSA-2655-q453-22f9 , PYSEC-2012-7 , EUVD-2012-0006
- cvss
- 7.5
- version 3.1, GitHub
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 3.7%
- EPSS 3.7% chance of exploitation in 30 days, percentile 89%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- pypi django 1.3.4, 1.4.2
- python-django Debian 14, Debian 13, Debian 12 1.4.2-1
debian advisories DEBIAN-CVE-2012-4520
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2012-4520 updated cvss 4.3
Django: Host header poisoning vulnerability
-
Red Hat Subscription Asset Manager Djangoaffected: no fix available
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
3.74% chance of exploitation in the next 30 days, higher than 89% of all scored CVEs (FIRST EPSS, 2026-11-09).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 2.0 | 6.4 | AV:N/AC:L/Au:N/C:P/I:P/A:N |
| GitHub | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | django | >=1.3, <1.3.4 >=1.4, <1.4.2 |
1.3.4 1.4.2 |
Classification
- Weakness
-
- CWE-20 Improper Input Validation
- Technology feeds
References
-
github.com
/django/django/commit/b45c377f8f488955e0c7069cad3f3dd21910b071
web, patch
-
github.com
/django/django/commit/92d3430f12171f16f566c9050c40feefb830a4a3
web, patch
-
github.com
/django/django/commit/9305c0e12d43c4df999c3301a1f0c742264a657e
web, patch
-
djangoproject.com
/weblog/2012/oct/17/security/
patch, vendor-advisory, article
-
lists.fedoraproject.org
/pipermail/package-announce/2012-October/090970.html
vendor-advisory, web
-
ubuntu.com
/usn/usn-1757-1
vendor-advisory, web
-
debian.org
/security/2013/dsa-2634
vendor-advisory, web, advisory
-
lists.fedoraproject.org
/pipermail/package-announce/2012-October/090904.html
vendor-advisory, web
-
lists.fedoraproject.org
/pipermail/package-announce/2012-October/090666.html
vendor-advisory, web
-
ubuntu.com
/usn/usn-1632-1
vendor-advisory, web
-
secunia.com
/advisories/51314
third-party-advisory, vendor-advisory, advisory
-
secunia.com
/advisories/51033
third-party-advisory, vendor-advisory, advisory
-
openwall.com
/lists/oss-security/2012/10/30/4
mailing-list, web
-
securitytracker.com
/id?1027708
vdb-entry, web
-
osvdb.org
/86493
vdb-entry, web
-
bugs.debian.org
/cgi-bin/bugreport.cgi?bug=691145
web
-
bugzilla.redhat.com
/show_bug.cgi?id=865164
web, report
-
nvd.nist.gov
/vuln/detail/CVE-2012-4520
advisory
-
openwall.com
/lists/oss-security/2012/10/30/4
web
-
djangoproject.com
/weblog/2012/oct/17/security
web
-
debian.org
/security/2013/dsa-2634
web
-
web.archive.org
/web/20140417023920/http://securitytracker.com/id?1027708
web
-
ubuntu.com
/usn/usn-1757-1
web
-
ubuntu.com
/usn/usn-1632-1
web
-
lists.fedoraproject.org
/pipermail/package-announce/2012-October/090970.html
web
-
lists.fedoraproject.org
/pipermail/package-announce/2012-October/090904.html
web
-
lists.fedoraproject.org
/pipermail/package-announce/2012-October/090666.html
web
-
github.com
/pypa/advisory-database/tree/main/vulns/django/PYSEC-2012-7.yaml
web
-
github.com
/django/django
package
-
bugs.debian.org
/cgi-bin/bugreport.cgi?bug=691145
web
-
github.com
/advisories/GHSA-2655-q453-22f9
advisory
Sources
- CVE List CVE-2012-4520
- GitHub Advisory GHSA-2655-q453-22f9
- NVD CVE-2012-4520
- OSV PYSEC-2012-7
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.