CVE-2012-4520
HIGH7.5EPSS 3.9%python-django - several vulnerabilities
Published: 5/17/2022Modified: 4/28/2026
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.
Affected packages (4)
- Debian/python-djangofrom 0, < 1.4.2-1
- Debian/python-djangofrom 0, < 1.2.3-3+squeeze5
- PyPI/django>= 1.3, < 1.3.4
- PyPI/djangofrom 0, < 9305c0e12d43c4df999c3301a1f0c742264a657e, < b45c377f8f488955e0c7069cad3f3dd21910b071, < 92d3430f12171f16f566c9050c40feefb830a4a3 | >= 1.3, < 1.3.4, >= 1.4, < 1.4.2
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | 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 | CVSS 3.1 | HIGH7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
References (31)
- ADVISORYhttp://secunia.com/advisories/51033
- ADVISORYhttp://secunia.com/advisories/51314
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2012-4520
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2012-4520
- ADVISORYhttps://www.djangoproject.com/weblog/2012/oct/17/security/
- PATCHhttps://github.com/django/django
- WEBhttp://bugs.debian.org/cgi-bin/bugreport.cgi?bug=691145
- WEBhttp://lists.fedoraproject.org/pipermail/package-announce/2012-October/090666.html
- WEBhttp://lists.fedoraproject.org/pipermail/package-announce/2012-October/090904.html
- WEBhttp://lists.fedoraproject.org/pipermail/package-announce/2012-October/090970.html
- WEBhttps://bugs.debian.org/cgi-bin/bugreport.cgi?bug=691145
- WEBhttps://bugzilla.redhat.com/show_bug.cgi?id=865164
- WEBhttp://securitytracker.com/id?1027708
- WEBhttps://github.com/django/django/commit/92d3430f12171f16f566c9050c40feefb830a4a3
- WEBhttps://github.com/django/django/commit/9305c0e12d43c4df999c3301a1f0c742264a657e
- WEBhttps://github.com/django/django/commit/b45c377f8f488955e0c7069cad3f3dd21910b071
- WEBhttps://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2012-7.yaml
- WEBhttps://lists.fedoraproject.org/pipermail/package-announce/2012-October/090666.html
- WEBhttps://lists.fedoraproject.org/pipermail/package-announce/2012-October/090904.html
- WEBhttps://lists.fedoraproject.org/pipermail/package-announce/2012-October/090970.html
- WEBhttps://ubuntu.com/usn/usn-1632-1
- WEBhttps://ubuntu.com/usn/usn-1757-1
- WEBhttps://web.archive.org/web/20140417023920/http://securitytracker.com/id?1027708
- WEBhttps://www.debian.org/security/2013/dsa-2634
- WEBhttps://www.djangoproject.com/weblog/2012/oct/17/security
- WEBhttps://www.openwall.com/lists/oss-security/2012/10/30/4
- WEBhttp://ubuntu.com/usn/usn-1632-1
- WEBhttp://ubuntu.com/usn/usn-1757-1
- WEBhttp://www.debian.org/security/2013/dsa-2634
- WEBhttp://www.openwall.com/lists/oss-security/2012/10/30/4
- WEBhttp://www.osvdb.org/86493