CVE-2011-1521
Description
The urllib and urllib2 modules in Python 2.x before 2.7.2 and 3.x before 3.2.1 process Location headers that specify redirection to file: URLs, which makes it easier for remote attackers to obtain sensitive information or cause a denial of service (resource consumption) via a crafted URL, as demonstrated by the file:///etc/passwd and file:///dev/zero URLs.
Severity
not scored
CVSS v3
not scored
Exploit chance (EPSS)
3.564%
chance of exploitation in the next 30 days
higher than 89.5% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
None public
Exploit references (NVD and CNA): 0
Metasploit modules: 0
Nuclei templates: 0
Weakness
Timeline
- 2011-05-24Published by the CNA23:00 UTC
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| python python | 2.0no fix listed2.0.1no fix listed2.1no fix listed2.1.1no fix listed2.1.2no fix listed(+33 more) | not listednot listednot listednot listednot listed |
References
- http://bugs.python.org/issue11662
- http://hg.python.org/cpython/rev/96a6c128822b/
- http://hg.python.org/cpython/rev/b2934d98dac1/
- https://bugzilla.redhat.com/show_bug.cgi?id=690560
- http://lists.apple.com/archives/Security-announce/2011//Oct/msg00003.html
- http://lists.opensuse.org/opensuse-security-announce/2011-05/msg00005.html
- http://www.mandriva.com/security/advisories?name=MDVSA-2011:096
- http://www.ubuntu.com/usn/USN-1592-1
- http://www.ubuntu.com/usn/USN-1596-1
- http://www.ubuntu.com/usn/USN-1613-1
- http://www.ubuntu.com/usn/USN-1613-2
- http://hg.python.org/cpython/file/96a6c128822b/Misc/NEWS
- http://hg.python.org/cpython/file/b2934d98dac1/Misc/NEWS
- http://openwall.com/lists/oss-security/2011/03/24/5
- http://openwall.com/lists/oss-security/2011/03/28/2
- http://openwall.com/lists/oss-security/2011/09/11/1
- http://openwall.com/lists/oss-security/2011/09/13/2
- http://openwall.com/lists/oss-security/2011/09/15/5
- http://secunia.com/advisories/50858
- http://secunia.com/advisories/51024
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2011-1521'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2011-1521'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2011-1521'curl 'https://api.contrastcyber.com/cve_products/CVE-2011-1521'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).