CVE-2011-1521Python
Medium 6.4 No auth needed
- Priority
- 53
- CVSS 2.0
- 6.4
- EPSS
- —
- Auth required
- No
- Published
- May 24, 2011
- Updated
- Jun 16, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-399
- Vector
AV:N/AC:L/Au:N/C:P/I:N/A:P
What happens
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.
What to do
- Apply the vendor's security update for Python.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| python | python | 2.0 |
| python | python | 2.0.1 |
| python | python | 2.1 |
| python | python | 2.1.1 |
| python | python | 2.1.2 |
| python | python | 2.1.3 |
| python | python | 2.2 |
| python | python | 2.2.1 |
| python | python | 2.2.2 |
| python | python | 2.2.3 |
| python | python | 2.3.1 |
| python | python | 2.3.2 |
| python | python | 2.3.3 |
| python | python | 2.3.4 |
| python | python | 2.3.5 |
| python | python | 2.3.7 |
| python | python | 2.4.1 |
| python | python | 2.4.2 |
| python | python | 2.4.3 |
| python | python | 2.4.4 |
| python | python | 2.4.6 |
| python | python | 2.5.1 |
| python | python | 2.5.2 |
| python | python | 2.5.3 |
| python | python | 2.5.4 |
| python | python | 2.6.1 |
| python | python | 2.6.4 |
| python | python | 2.6.5 |
| python | python | 2.6.6 |
| python | python | 2.6.7 |
| python | python | 2.7.1 |
| python | python | 3.0 |
| python | python | 3.0.1 |
| python | python | 3.1 |
| python | python | 3.1.1 |
| python | python | 3.1.2 |
| python | python | 3.1.3 |
| python | python | 3.2 |
| python | python | 3.2 |
Official sources
References
Links published by the sources. Open them with care.
- bugs.python.org Patch
- hg.python.org
- hg.python.org
- hg.python.org Patch
- hg.python.org Patch
- lists.apple.com
- lists.opensuse.org
- openwall.com
- openwall.com
- openwall.com
- openwall.com
- openwall.com
- secunia.com
- secunia.com
- secunia.com
- securitytracker.com
- support.apple.com
- www.mandriva.com
- www.ubuntu.com
- www.ubuntu.com
- www.ubuntu.com
- www.ubuntu.com
- bugzilla.redhat.com Patch
- bugzilla.redhat.com
- www.djangoproject.com
- www.djangoproject.com