The django.http.HttpRequest.get_host function in Django 1.3.x before 1.3.4 and 1.4.x…
Priority LOW 35CWE-20Published · Updated
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- — Not recorded in CVSS 2.0
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- Partial · Partial · None
- Fix status
- Partial Red Hat: 1 without a fix
Attack profile from CVSS 2.0 · NVD. Fix status from CNA, GitHub and Red Hat.
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.
Why it matters now
EPSS 0.03736 89th percentileScored 2026-11-07
Fix Partial Django (PyPI): 1.3.4, 1.4.2Red Hat: 1 without a fix
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
| — | Django (PyPI) | 1.3 to before 1.3.4 | 1.3.4 | Patch available | GHSA-2655-q453-22f9 |
| — | Django (PyPI) | 1.4 to before 1.4.2 | 1.4.2 | Patch available | GHSA-2655-q453-22f9 |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
- Django (PyPI) Vendor— Affected 1.3 to before 1.3.4 Fixed in 1.3.4 Patch available GHSA-2655-q453-22f9
- Django (PyPI) Vendor— Affected 1.4 to before 1.4.2 Fixed in 1.4.2 Patch available GHSA-2655-q453-22f9
CPE configurations NVD · 8
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:djangoproject:django:1.3:*:*:*:*:*:*:* | 1.3 | Vulnerable | djangoproject |
| cpe:2.3:a:djangoproject:django:1.3:alpha1:*:*:*:*:*:* | 1.3 alpha1 | Vulnerable | djangoproject |
| cpe:2.3:a:djangoproject:django:1.3:beta1:*:*:*:*:*:* | 1.3 beta1 | Vulnerable | djangoproject |
| cpe:2.3:a:djangoproject:django:1.3.1:*:*:*:*:*:*:* | 1.3.1 | Vulnerable | djangoproject |
| cpe:2.3:a:djangoproject:django:1.3.2:*:*:*:*:*:*:* | 1.3.2 | Vulnerable | djangoproject |
| cpe:2.3:a:djangoproject:django:1.3.3:*:*:*:*:*:*:* | 1.3.3 | Vulnerable | djangoproject |
| cpe:2.3:a:djangoproject:django:1.4:*:*:*:*:*:*:* | 1.4 | Vulnerable | djangoproject |
| cpe:2.3:a:djangoproject:django:1.4.1:*:*:*:*:*:*:* | 1.4.1 | Vulnerable | djangoproject |
- cpe:2.3:a:djangoproject:django:1.3:*:*:*:*:*:*:* Versions 1.3 Vulnerable ·djangoproject
- cpe:2.3:a:djangoproject:django:1.3:alpha1:*:*:*:*:*:* Versions 1.3 alpha1 Vulnerable ·djangoproject
- cpe:2.3:a:djangoproject:django:1.3:beta1:*:*:*:*:*:* Versions 1.3 beta1 Vulnerable ·djangoproject
- cpe:2.3:a:djangoproject:django:1.3.1:*:*:*:*:*:*:* Versions 1.3.1 Vulnerable ·djangoproject
- cpe:2.3:a:djangoproject:django:1.3.2:*:*:*:*:*:*:* Versions 1.3.2 Vulnerable ·djangoproject
- cpe:2.3:a:djangoproject:django:1.3.3:*:*:*:*:*:*:* Versions 1.3.3 Vulnerable ·djangoproject
- cpe:2.3:a:djangoproject:django:1.4:*:*:*:*:*:*:* Versions 1.4 Vulnerable ·djangoproject
- cpe:2.3:a:djangoproject:django:1.4.1:*:*:*:*:*:*:* Versions 1.4.1 Vulnerable ·djangoproject
Remediation
- Fix · GHSA-2655-q453-22f9 Django (PyPI) Fixed in 1.3.4 Advisory →
- Fix · GHSA-2655-q453-22f9 Django (PyPI) Fixed in 1.4.2 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Subscription Asset Manager | Affected | No fix yet |
Timeline
- 2026-10-02 Threatist record created from CVE-2012-4520
- 2026-10-03 Alias added: GHSA-2655-q453-22f9
References
Advisory 7
Other 19
- [oss-security] 20121029 Re: CVE Request: Django
- https://github.com/django/django/commit/b45c377f8f488955e0c7069cad3f3dd21910b071
- 86493
- http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=691145
- https://github.com/django/django/commit/92d3430f12171f16f566c9050c40feefb830a4a3
- https://github.com/django/django/commit/9305c0e12d43c4df999c3301a1f0c742264a657e
- https://bugzilla.redhat.com/show_bug.cgi?id=865164
- 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://bugs.debian.org/cgi-bin/bugreport.cgi?bug=691145
More djangoproject Django vulnerabilities
- TI-2022-15177 An issue was discovered in Django 3.2 before 3.2.14 and 4.0 before 4.0.6. CVSS 3.1CRITICAL 9.8
- TI-2020-05994 Django 1.11 before 1.11.28, 2.2 before 2.2.10, and 3.0 before 3.0.3 allows SQL Injection… CVSS 3.1CRITICAL 9.8
- TI-2023-10198 An issue was discovered in the Multipart Request Parser in Django 3.2 before 3.2.18, 4.0… CVSS 3.1HIGH 7.5
- TI-2019-14306 Django before 1.11.27, 2.x before 2.2.9, and 3.x before 3.0.1 allows account takeover. CVSS 3.1CRITICAL 9.8
- TI-2019-10595 An issue was discovered in Django 1.11.x before 1.11.23, 2.1.x before 2.1.11, and 2.2.x… CVSS 3.0CRITICAL 9.8
- TI-2021-14006 Django 3.1.x before 3.1.13 and 3.2.x before 3.2.5 allows QuerySet.order_by SQL injection… CVSS 3.1CRITICAL 9.8
Sources
- CVE-2012-4520 · CVE Program
- CVE-2012-4520 · NVD
- FIRST EPSS
- GHSA-2655-q453-22f9 · GitHub Advisory Database · CC BY 4.0
- CVE-2012-4520 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences