Feed
7.5HIGH
CVE-2012-4520Django Allows Arbitrary URL Generation
A high-severity vulnerability reachable over the network, needing no privileges and no user interaction. EPSS estimates a 3.7% chance of exploitation in the next 30 days. A fixed version is named.
- Exploited in the wild
- Not in KEV
- EPSS
- 3.7%
- percentile 91%
- Fix
- Named by a source
- CVE published 18 Nov 2012
Reference
None of the "Needs attention" rules apply right now.
EPSS 3.7% (+4) · Network attack vector (+10) · No privileges required (+5) · No user interaction (+5)
Immediate actions
- django (PyPI): upgrade to 1.3.4 / 1.4.2 or later on your release line.
- Patch: https://github.com/django/django/commit/92d3430f12171f16f566c9050c40feefb830a4a3
- Patch: https://github.com/django/django/commit/9305c0e12d43c4df999c3301a1f0c742264a657e
- Patch: https://github.com/django/django/commit/b45c377f8f488955e0c7069cad3f3dd21910b071
Who should check
django (PyPI) pkg:pypi/django
- Affected>= 1.3, < 1.3.4Fixed in1.3.4OSV (PYSEC-2012-7)
- Affected>= 1.4, < 1.4.2Fixed in1.4.2OSV (PYSEC-2012-7)
- Affected1.2.1, 1.2, 1.1, 1.0Fixed innot namedOSV (PYSEC-2012-7)
Confirmed facts
- CVSS
- 7.5 HIGH (version 3.1)
- Score from
- GitHub Advisory Database (GHSA-2655-q453-22f9)
- Attack vector
- network
- Attack complexity
- low
- Privileges required
- none
- User interaction
- none
- Weakness
- CWE-20
Unknowns
- We show one CVSS score. Other sources may score this CVE differently.
Advisory text
Quoted from the source advisory (untrusted)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.
Update history
No events recorded. Our history starts on 1 Jan 2025.
References
- advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2012-4520
- patchhttps://github.com/django/django/commit/92d3430f12171f16f566c9050c40feefb830a4a3
- patchhttps://github.com/django/django/commit/9305c0e12d43c4df999c3301a1f0c742264a657e
- patchhttps://github.com/django/django/commit/b45c377f8f488955e0c7069cad3f3dd21910b071
- otherhttps://www.openwall.com/lists/oss-security/2012/10/30/4
- otherhttps://www.djangoproject.com/weblog/2012/oct/17/security
- otherhttps://www.debian.org/security/2013/dsa-2634
- otherhttps://web.archive.org/web/20140417023920/http://securitytracker.com/id?1027708
- otherhttps://ubuntu.com/usn/usn-1757-1
- otherhttps://ubuntu.com/usn/usn-1632-1
- otherhttps://lists.fedoraproject.org/pipermail/package-announce/2012-October/090970.html
- otherhttps://lists.fedoraproject.org/pipermail/package-announce/2012-October/090904.html
- otherhttps://lists.fedoraproject.org/pipermail/package-announce/2012-October/090666.html
- otherhttps://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2012-7.yaml
- otherhttps://github.com/django/django
- otherhttps://bugzilla.redhat.com/show_bug.cgi?id=865164
- otherhttps://bugs.debian.org/cgi-bin/bugreport.cgi?bug=691145
- otherhttp://bugs.debian.org/cgi-bin/bugreport.cgi?bug=691145
- otherhttp://lists.fedoraproject.org/pipermail/package-announce/2012-October/090666.html
- otherhttp://lists.fedoraproject.org/pipermail/package-announce/2012-October/090904.html
- otherhttp://lists.fedoraproject.org/pipermail/package-announce/2012-October/090970.html
- otherhttp://ubuntu.com/usn/usn-1632-1
- otherhttp://ubuntu.com/usn/usn-1757-1
- advisoryhttp://www.debian.org/security/2013/dsa-2634
- otherhttp://www.openwall.com/lists/oss-security/2012/10/30/4
- otherhttp://www.osvdb.org/86493
- otherhttps://www.djangoproject.com/weblog/2012/oct/17/security/
- otherhttp://securitytracker.com/id?1027708
- advisoryhttp://secunia.com/advisories/51314
- advisoryhttp://secunia.com/advisories/51033
Sources
- EPSS by FIRST.org, Free to use, attribution requested. Scores generated by Empirical Security.
- GHSA-2655-q453-22f9 (GitHub Advisory Database), CC BY 4.0.
- PYSEC-2012-7 (PyPA Advisory Database), CC BY 4.0.
- OSV.dev, Per database.
This page is our own presentation: records are shortened, normalised and merged. Licences
Last checked: kev 15 min ago · osv 15 min ago · nvd 15 min ago · epss 14 min ago · JSON · ask via MCP: explain_vulnerability
Also known as GHSA-2655-q453-22f9, PYSEC-2012-7