CVE-2011-1521

Summary

CVECVE-2011-1521
StatePUBLISHED
Assignermitre
Source PriorityCVE Program / NVD first with legacy fallback
Published2011-05-24 23:55:02 UTC
Updated2026-04-29 01:13:23 UTC
DescriptionThe 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.

Risk And Classification

Primary CVSS: v2.0 6.4 from [email protected]

AV:N/AC:L/Au:N/C:P/I:N/A:P

Problem Types: CWE-399 | n/a

CVSS v2.0 Breakdown

Access Vector
Network
Access Complexity
Low
Authentication
None
Confidentiality
Partial
Integrity
None
Availability
Partial

AV:N/AC:L/Au:N/C:P/I:N/A:P

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Application Python Python 2.0 All All All
Application Python Python 2.0.1 All All All
Application Python Python 2.1 All All All
Application Python Python 2.1.1 All All All
Application Python Python 2.1.2 All All All
Application Python Python 2.1.3 All All All
Application Python Python 2.2 All All All
Application Python Python 2.2.1 All All All
Application Python Python 2.2.2 All All All
Application Python Python 2.2.3 All All All
Application Python Python 2.3.1 All All All
Application Python Python 2.3.2 All All All
Application Python Python 2.3.3 All All All
Application Python Python 2.3.4 All All All
Application Python Python 2.3.5 All All All
Application Python Python 2.3.7 All All All
Application Python Python 2.4.1 All All All
Application Python Python 2.4.2 All All All
Application Python Python 2.4.3 All All All
Application Python Python 2.4.4 All All All
Application Python Python 2.4.6 All All All
Application Python Python 2.5.1 All All All
Application Python Python 2.5.2 All All All
Application Python Python 2.5.3 All All All
Application Python Python 2.5.4 All All All
Application Python Python 2.6.1 All All All
Application Python Python 2.6.4 All All All
Application Python Python 2.6.5 All All All
Application Python Python 2.6.6 All All All
Application Python Python 2.6.7 All All All
Application Python Python 2.7.1 All All All
Application Python Python 3.0 All All All
Application Python Python 3.0.1 All All All
Application Python Python 3.1 All All All
Application Python Python 3.1.1 All All All
Application Python Python 3.1.2 All All All
Application Python Python 3.1.3 All All All
Application Python Python 3.2 All All All
Application Python Python 3.2 alpha All All

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Na N/a affected n/a Not specified

References

ReferenceSourceLinkTags
USN-1613-2: Python 2.4 vulnerabilities | Ubuntu af854a3a-2127-422b-91ae-364da2661108 www.ubuntu.com
Security Advisory SA50858 - Ubuntu update for python - Secunia af854a3a-2127-422b-91ae-364da2661108 secunia.com
Support / Security / Advisories / / MDVSA-2011:096 | Mandriva af854a3a-2127-422b-91ae-364da2661108 www.mandriva.com
cpython: b2934d98dac1 Misc/NEWS af854a3a-2127-422b-91ae-364da2661108 hg.python.org
Python urllib Redirection Flaw Lets Remote Servers Deny Service and Obtain Files - SecurityTracker af854a3a-2127-422b-91ae-364da2661108 securitytracker.com
cpython: b2934d98dac1 af854a3a-2127-422b-91ae-364da2661108 hg.python.org Patch
cpython: 96a6c128822b af854a3a-2127-422b-91ae-364da2661108 hg.python.org Patch
September 9 | Weblog | Django af854a3a-2127-422b-91ae-364da2661108 www.djangoproject.com
USN-1613-1: Python 2.5 vulnerabilities | Ubuntu af854a3a-2127-422b-91ae-364da2661108 www.ubuntu.com
Bug 737366 – CVE-2011-4136 CVE-2011-4137 CVE-2011-4138 CVE-2011-4139 CVE-2011-4140 Django: v1.3.1, v1.2.7 multiple security flaws af854a3a-2127-422b-91ae-364da2661108 bugzilla.redhat.com
[security-announce] SUSE Security Summary Report: SUSE-SR:2011:009 af854a3a-2127-422b-91ae-364da2661108 lists.opensuse.org
APPLE-SA-2011-10-12-3 OS X Lion v10.7.2 and Security Update 2011-006 af854a3a-2127-422b-91ae-364da2661108 lists.apple.com
USN-1592-1: Python 2.7 vulnerabilities | Ubuntu af854a3a-2127-422b-91ae-364da2661108 www.ubuntu.com
Security Advisory SA51024 - Ubuntu update for python2.5 - Secunia af854a3a-2127-422b-91ae-364da2661108 secunia.com
Security Advisory SA51040 - Ubuntu update for python2.4 - Secunia af854a3a-2127-422b-91ae-364da2661108 secunia.com
oss-security - Re: CVE Request -- Python (urllib, urllib2): Improper management of ftp:// and file:// URL schemes af854a3a-2127-422b-91ae-364da2661108 openwall.com
Bug 690560 – CVE-2011-1521 python (urllib, urllib2): Improper management of ftp:// and file:// URL schemes (Issue #11662) af854a3a-2127-422b-91ae-364da2661108 bugzilla.redhat.com Patch
About the security content of OS X Lion v10.7.2 and Security Update 2011-006 af854a3a-2127-422b-91ae-364da2661108 support.apple.com
oss-security - CVE Request -- Django: v1.3.1, v1.2.7 multiple security flaws af854a3a-2127-422b-91ae-364da2661108 openwall.com
Django | Weblog | Django 1.2.7 released af854a3a-2127-422b-91ae-364da2661108 www.djangoproject.com
oss-security - Re: CVE Request -- Django: v1.3.1, v1.2.7 multiple security flaws af854a3a-2127-422b-91ae-364da2661108 openwall.com
Issue 11662: Redirect vulnerability in urllib/urllib2 - Python tracker af854a3a-2127-422b-91ae-364da2661108 bugs.python.org Patch
cpython: 96a6c128822b Misc/NEWS af854a3a-2127-422b-91ae-364da2661108 hg.python.org
USN-1596-1: Python 2.6 vulnerabilities | Ubuntu af854a3a-2127-422b-91ae-364da2661108 www.ubuntu.com
oss-security - CVE Request -- Python (urllib, urllib2): Improper management of ftp:// and file:// URL schemes af854a3a-2127-422b-91ae-364da2661108 openwall.com
oss-security - Re: CVE Request -- Django: v1.3.1, v1.2.7 multiple security flaws af854a3a-2127-422b-91ae-364da2661108 openwall.com
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report