# CVE-2012-4520

- Priority: **Prioritise**
- Reason: Severe, CVSS 8.7 (OSV · Pypi); no exploitation reported by the 5 checked sources; EPSS 4% (FIRST, 04-12-2026)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2012-11-18 · Modified: 2024-08-06
- Aliases: GHSA-2655-q453-22f9, PYSEC-2012-7, DEBIAN-CVE-2012-4520
- Record: https://cvemate.com/vulnerability/CVE-2012-4520 · JSON: https://cvemate.com/vulnerability/CVE-2012-4520/json

## Description

```text
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.
```

## Signals

- CVSS: 6.4 medium (v2.0, NVD) AV:N/AC:L/Au:N/C:P/I:P/A:N
- EPSS: 3.736%, percentile 90.178%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- debian python-django (Debian): \< 1.4.2-1
- djangoproject django: 1.3 \| 1.3:alpha1 \| 1.3:beta1 \| 1.3.1 \| 1.3.2 \| 1.3.3 \| 1.4 \| 1.4.1
- PyPI django (PyPI): ≥ 1.3, \< 1.3.4 \| \< 92d3430f12171f16f566c9050c40feefb830a4a3 \| ≥ 1.4, \< 1.4.2

## References (first 20 of 32)

- <http://www.openwall.com/lists/oss-security/2012/10/30/4>
- <http://securitytracker.com/id?1027708>
- <https://github.com/django/django/commit/b45c377f8f488955e0c7069cad3f3dd21910b071>
- <http://www.osvdb.org/86493>
- <http://secunia.com/advisories/51314>
- <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=691145>
- <http://lists.fedoraproject.org/pipermail/package-announce/2012-October/090970.html>
- <http://ubuntu.com/usn/usn-1757-1>
- <https://github.com/django/django/commit/92d3430f12171f16f566c9050c40feefb830a4a3>
- <http://www.debian.org/security/2013/dsa-2634>
- <https://www.djangoproject.com/weblog/2012/oct/17/security/>
- <http://lists.fedoraproject.org/pipermail/package-announce/2012-October/090904.html>
- <https://github.com/django/django/commit/9305c0e12d43c4df999c3301a1f0c742264a657e>
- <http://secunia.com/advisories/51033>
- <https://bugzilla.redhat.com/show_bug.cgi?id=865164>
- <http://lists.fedoraproject.org/pipermail/package-announce/2012-October/090666.html>
- <http://ubuntu.com/usn/usn-1632-1>
- <https://nvd.nist.gov/vuln/detail/CVE-2012-4520>
- <https://www.openwall.com/lists/oss-security/2012/10/30/4>
- <https://www.djangoproject.com/weblog/2012/oct/17/security>

---

Data as of 2026-12-05T04:54:46.689Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
