CVE-2011-1521
MEDIUM 6.4CVSS 2.0The 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.
- Published
- 24 May 2011
- Last modified
- 16 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-399
- Sources
- NVDJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 6.4 | AV:N/AC:L/Au:N/C:P/I:N/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | python | pythoncpe:2.3:a:python:python:2.0:*:*:*:*:*:*:* |
= 2.0 | |
| NVD | python | pythoncpe:2.3:a:python:python:2.0.1:*:*:*:*:*:*:* |
= 2.0.1 | |
| NVD | python | pythoncpe:2.3:a:python:python:2.1:*:*:*:*:*:*:* |
= 2.1 | |
| NVD | python | pythoncpe:2.3:a:python:python:2.1.1:*:*:*:*:*:*:* |
= 2.1.1 | |
| NVD | python | pythoncpe:2.3:a:python:python:2.1.2:*:*:*:*:*:*:* |
= 2.1.2 | |
| NVD | python | pythoncpe:2.3:a:python:python:2.1.3:*:*:*:*:*:*:* |
= 2.1.3 | |
| NVD | python | pythoncpe:2.3:a:python:python:2.2:*:*:*:*:*:*:* |
= 2.2 | |
| NVD | python | pythoncpe:2.3:a:python:python:2.2.1:*:*:*:*:*:*:* |
= 2.2.1 | |
| NVD | python | pythoncpe:2.3:a:python:python:2.2.2:*:*:*:*:*:*:* |
= 2.2.2 | |
| NVD | python | pythoncpe:2.3:a:python:python:2.2.3:*:*:*:*:*:*:* |
= 2.2.3 | |
| NVD | python | pythoncpe:2.3:a:python:python:2.3.1:*:*:*:*:*:*:* |
= 2.3.1 | |
| NVD | python | pythoncpe:2.3:a:python:python:2.3.2:*:*:*:*:*:*:* |
= 2.3.2 | |
| NVD | python | pythoncpe:2.3:a:python:python:2.3.3:*:*:*:*:*:*:* |
= 2.3.3 | |
| NVD | python | pythoncpe:2.3:a:python:python:2.3.4:*:*:*:*:*:*:* |
= 2.3.4 | |
| NVD | python | pythoncpe:2.3:a:python:python:2.3.5:*:*:*:*:*:*:* |
= 2.3.5 | |
| NVD | python | pythoncpe:2.3:a:python:python:2.3.7:*:*:*:*:*:*:* |
= 2.3.7 | |
| NVD | python | pythoncpe:2.3:a:python:python:2.4.1:*:*:*:*:*:*:* |
= 2.4.1 | |
| NVD | python | pythoncpe:2.3:a:python:python:2.4.2:*:*:*:*:*:*:* |
= 2.4.2 | |
| NVD | python | pythoncpe:2.3:a:python:python:2.4.3:*:*:*:*:*:*:* |
= 2.4.3 | |
| NVD | python | pythoncpe:2.3:a:python:python:2.4.4:*:*:*:*:*:*:* |
= 2.4.4 | |
| NVD | python | pythoncpe:2.3:a:python:python:2.4.6:*:*:*:*:*:*:* |
= 2.4.6 | |
| NVD | python | pythoncpe:2.3:a:python:python:2.5.1:*:*:*:*:*:*:* |
= 2.5.1 | |
| NVD | python | pythoncpe:2.3:a:python:python:2.5.2:*:*:*:*:*:*:* |
= 2.5.2 | |
| NVD | python | pythoncpe:2.3:a:python:python:2.5.3:*:*:*:*:*:*:* |
= 2.5.3 | |
| NVD | python | pythoncpe:2.3:a:python:python:2.5.4:*:*:*:*:*:*:* |
= 2.5.4 | |
| NVD | python | pythoncpe:2.3:a:python:python:2.6.1:*:*:*:*:*:*:* |
= 2.6.1 | |
| NVD | python | pythoncpe:2.3:a:python:python:2.6.4:*:*:*:*:*:*:* |
= 2.6.4 | |
| NVD | python | pythoncpe:2.3:a:python:python:2.6.5:*:*:*:*:*:*:* |
= 2.6.5 | |
| NVD | python | pythoncpe:2.3:a:python:python:2.6.6:*:*:*:*:*:*:* |
= 2.6.6 | |
| NVD | python | pythoncpe:2.3:a:python:python:2.6.7:*:*:*:*:*:*:* |
= 2.6.7 | |
| NVD | python | pythoncpe:2.3:a:python:python:2.7.1:*:*:*:*:*:*:* |
= 2.7.1 | |
| NVD | python | pythoncpe:2.3:a:python:python:3.0:*:*:*:*:*:*:* |
= 3.0 | |
| NVD | python | pythoncpe:2.3:a:python:python:3.0.1:*:*:*:*:*:*:* |
= 3.0.1 | |
| NVD | python | pythoncpe:2.3:a:python:python:3.1:*:*:*:*:*:*:* |
= 3.1 | |
| NVD | python | pythoncpe:2.3:a:python:python:3.1.1:*:*:*:*:*:*:* |
= 3.1.1 | |
| NVD | python | pythoncpe:2.3:a:python:python:3.1.2:*:*:*:*:*:*:* |
= 3.1.2 | |
| NVD | python | pythoncpe:2.3:a:python:python:3.1.3:*:*:*:*:*:*:* |
= 3.1.3 | |
| NVD | python | pythoncpe:2.3:a:python:python:3.2:*:*:*:*:*:*:* |
= 3.2 | |
| NVD | python | pythoncpe:2.3:a:python:python:3.2:alpha:*:*:*:*:*:* |
= 3.2 |
References
- http://bugs.python.org/issue11662 · Patch
- http://hg.python.org/cpython/file/96a6c128822b/Misc/NEWS
- http://hg.python.org/cpython/file/b2934d98dac1/Misc/NEWS
- http://hg.python.org/cpython/rev/96a6c128822b/ · Patch
- http://hg.python.org/cpython/rev/b2934d98dac1/ · Patch
- http://lists.apple.com/archives/Security-announce/2011//Oct/msg00003.html
- http://lists.opensuse.org/opensuse-security-announce/2011-05/msg00005.html
- 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
- http://secunia.com/advisories/51040
- http://securitytracker.com/id?1025488
- http://support.apple.com/kb/HT5002
- 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
- https://bugzilla.redhat.com/show_bug.cgi?id=690560 · Patch
- https://bugzilla.redhat.com/show_bug.cgi?id=737366
- https://www.djangoproject.com/weblog/2011/sep/09/
- https://www.djangoproject.com/weblog/2011/sep/10/127/
History
- 25 Nov 2026 20:16 UTC · NVD: first stored (published 24 May 2011)