CVE-2012-3442Django Allows Redirect via Data URL
Sources differ: another source: critical (GitHub Advisory Database (GHSA-78vx-ggch-wghm)).
A medium-severity vulnerability reachable over the network, needing no privileges and user interaction. EPSS estimates a 2.1% chance of exploitation in the next 30 days. A fixed version is named.
- Exploited in the wild
- Not in KEV
- EPSS
- 2.1%
- percentile 82%
- Fix
- Named by a source
- CVE published 31 Jul 2012
Reference
None of the "Needs attention" rules apply right now.
EPSS 2.1% (+2) · Network attack vector (+10) · No privileges required (+5) · Another source: critical: at least medium
Immediate actions
- django (PyPI): upgrade to 1.3.2 / 1.4.1 or later on your release line.
- Commit / pull request: https://github.com/django/django/commit/4dea4883e6c50d75f215a6b9bcbd95273f57c72d
- Commit / pull request: https://github.com/django/django/commit/e34685034b60be1112160e76091e5aee60149fa1
Who should check
django (PyPI) pkg:pypi/django
- Affected< 1.3.2Fixed in1.3.2OSV (PYSEC-2012-2)
- Affected>= 1.4, < 1.4.1Fixed in1.4.1OSV (PYSEC-2012-2)
Confirmed facts
- CVSS
- 6.1 MEDIUM (version 3.1)
- Score from
- GitHub Advisory Database (GHSA-78vx-ggch-wghm)
- Rated higher
- another source: critical (GitHub Advisory Database (GHSA-78vx-ggch-wghm))
- Attack vector
- network
- Attack complexity
- low
- Privileges required
- none
- User interaction
- required
- Weakness
- CWE-79
Unknowns
- We show one CVSS score. Other sources may score this CVE differently.
Advisory text
Quoted from the source advisory (untrusted)The (1) `django.http.HttpResponseRedirect` and (2) `django.http.HttpResponsePermanentRedirect` classes in Django before 1.3.2 and 1.4.x before 1.4.1 do not validate the scheme of a redirect target, which might allow remote attackers to conduct cross-site scripting (XSS) attacks via a `data:` URL.
Update history
No events recorded. Our history starts on 1 Jan 2025.
References
- advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2012-3442
- commit / pull requesthttps://github.com/django/django/commit/4dea4883e6c50d75f215a6b9bcbd95273f57c72d
- commit / pull requesthttps://github.com/django/django/commit/e34685034b60be1112160e76091e5aee60149fa1
- otherhttps://github.com/django/django
- otherhttps://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2012-2.yaml
- otherhttps://www.djangoproject.com/weblog/2012/jul/30/security-releases-issued
- advisoryhttp://www.debian.org/security/2012/dsa-2529
- advisoryhttp://www.mandriva.com/security/advisories?name=MDVSA-2012:143
- otherhttp://www.openwall.com/lists/oss-security/2012/07/31/1
- otherhttp://www.openwall.com/lists/oss-security/2012/07/31/2
- advisoryhttp://www.ubuntu.com/usn/USN-1560-1
- otherhttps://www.djangoproject.com/weblog/2012/jul/30/security-releases-issued/
- advisoryhttps://github.com/advisories/GHSA-78vx-ggch-wghm
Sources
- EPSS by FIRST.org, Free to use, attribution requested. Scores generated by Empirical Security.
- GHSA-78vx-ggch-wghm (GitHub Advisory Database), CC BY 4.0.
- PYSEC-2012-2 (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 14 min ago · nvd 14 min ago · epss 14 min ago · JSON · ask via MCP: explain_vulnerability
Also known as GHSA-78vx-ggch-wghm, PYSEC-2012-2