CVE-2012-4520
medium
CVSS v3
โ
CVSS v4 NEW
โ
VIR risk
6.4
Description
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.
Predictions
Exploit likelihood
30%
Patch ETA
โ
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
No mitigations published for this CVE yet.
The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or โ if you've already worked around this in production โ publish your fix to the community-verified tier.
โ Propose a mitigation on Community โ Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here withsource_tier=community-verified.
OS impact
Debian Fixed 5 releases
| Version | Status | Fixed in |
|---|---|---|
| trixie | Fixed | 1.4.2-1 |
| sid | Fixed | 1.4.2-1 |
| forky | Fixed | 1.4.2-1 |
| bullseye | Fixed | 1.4.2-1 |
| bookworm | Fixed | 1.4.2-1 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2012-4520
- https://github.com/django/django/commit/92d3430f12171f16f566c9050c40feefb830a4a3
- https://github.com/django/django/commit/9305c0e12d43c4df999c3301a1f0c742264a657e
- https://github.com/django/django/commit/b45c377f8f488955e0c7069cad3f3dd21910b071
- https://www.openwall.com/lists/oss-security/2012/10/30/4
- https://www.djangoproject.com/weblog/2012/oct/17/security
- https://www.debian.org/security/2013/dsa-2634
- https://web.archive.org/web/20140417023920/http://securitytracker.com/id?1027708
- https://ubuntu.com/usn/usn-1757-1
- https://ubuntu.com/usn/usn-1632-1
- https://lists.fedoraproject.org/pipermail/package-announce/2012-October/090970.html
- https://lists.fedoraproject.org/pipermail/package-announce/2012-October/090904.html
- https://lists.fedoraproject.org/pipermail/package-announce/2012-October/090666.html
- https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2012-7.yaml
- https://github.com/django/django
- https://bugzilla.redhat.com/show_bug.cgi?id=865164
- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=691145
- http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=691145
- http://lists.fedoraproject.org/pipermail/package-announce/2012-October/090666.html
- http://lists.fedoraproject.org/pipermail/package-announce/2012-October/090904.html
- http://lists.fedoraproject.org/pipermail/package-announce/2012-October/090970.html
- http://ubuntu.com/usn/usn-1632-1
- http://ubuntu.com/usn/usn-1757-1
- http://www.debian.org/security/2013/dsa-2634
- http://www.openwall.com/lists/oss-security/2012/10/30/4
CWEs
CWE-20
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.