The urllib and urllib2 modules in Python 2.x before 2.7.2 and 3.x before 3.2.1 process…
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- — Not recorded in CVSS 2.0
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- Partial · None · Partial
- Fix status
- Fixed
Attack profile from CVSS 2.0 · NVD. Fix status from CNA and Red Hat.
Summary
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
CPE configurations NVD · 39
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:python:python:2.0:*:*:*:*:*:*:* | 2.0 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:2.0.1:*:*:*:*:*:*:* | 2.0.1 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:2.1:*:*:*:*:*:*:* | 2.1 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:2.1.1:*:*:*:*:*:*:* | 2.1.1 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:2.1.2:*:*:*:*:*:*:* | 2.1.2 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:2.1.3:*:*:*:*:*:*:* | 2.1.3 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:2.2:*:*:*:*:*:*:* | 2.2 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:2.2.1:*:*:*:*:*:*:* | 2.2.1 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:2.2.2:*:*:*:*:*:*:* | 2.2.2 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:2.2.3:*:*:*:*:*:*:* | 2.2.3 | Vulnerable | python-pillow |
- cpe:2.3:a:python:python:2.0:*:*:*:*:*:*:* Versions 2.0 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:2.0.1:*:*:*:*:*:*:* Versions 2.0.1 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:2.1:*:*:*:*:*:*:* Versions 2.1 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:2.1.1:*:*:*:*:*:*:* Versions 2.1.1 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:2.1.2:*:*:*:*:*:*:* Versions 2.1.2 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:2.1.3:*:*:*:*:*:*:* Versions 2.1.3 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:2.2:*:*:*:*:*:*:* Versions 2.2 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:2.2.1:*:*:*:*:*:*:* Versions 2.2.1 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:2.2.2:*:*:*:*:*:*:* Versions 2.2.2 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:2.2.3:*:*:*:*:*:*:* Versions 2.2.3 Vulnerable ·python-pillow
Show 29 more CPE
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:python:python:2.3.1:*:*:*:*:*:*:* | 2.3.1 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:2.3.2:*:*:*:*:*:*:* | 2.3.2 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:2.3.3:*:*:*:*:*:*:* | 2.3.3 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:2.3.4:*:*:*:*:*:*:* | 2.3.4 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:2.3.5:*:*:*:*:*:*:* | 2.3.5 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:2.3.7:*:*:*:*:*:*:* | 2.3.7 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:2.4.1:*:*:*:*:*:*:* | 2.4.1 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:2.4.2:*:*:*:*:*:*:* | 2.4.2 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:2.4.3:*:*:*:*:*:*:* | 2.4.3 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:2.4.4:*:*:*:*:*:*:* | 2.4.4 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:2.4.6:*:*:*:*:*:*:* | 2.4.6 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:2.5.1:*:*:*:*:*:*:* | 2.5.1 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:2.5.2:*:*:*:*:*:*:* | 2.5.2 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:2.5.3:*:*:*:*:*:*:* | 2.5.3 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:2.5.4:*:*:*:*:*:*:* | 2.5.4 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:2.6.1:*:*:*:*:*:*:* | 2.6.1 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:2.6.4:*:*:*:*:*:*:* | 2.6.4 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:2.6.5:*:*:*:*:*:*:* | 2.6.5 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:2.6.6:*:*:*:*:*:*:* | 2.6.6 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:2.6.7:*:*:*:*:*:*:* | 2.6.7 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:2.7.1:*:*:*:*:*:*:* | 2.7.1 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:3.0:*:*:*:*:*:*:* | 3.0 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:3.0.1:*:*:*:*:*:*:* | 3.0.1 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:3.1:*:*:*:*:*:*:* | 3.1 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:3.1.1:*:*:*:*:*:*:* | 3.1.1 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:3.1.2:*:*:*:*:*:*:* | 3.1.2 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:3.1.3:*:*:*:*:*:*:* | 3.1.3 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:3.2:*:*:*:*:*:*:* | 3.2 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:3.2:alpha:*:*:*:*:*:* | 3.2 alpha | Vulnerable | python-pillow |
- cpe:2.3:a:python:python:2.3.1:*:*:*:*:*:*:* Versions 2.3.1 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:2.3.2:*:*:*:*:*:*:* Versions 2.3.2 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:2.3.3:*:*:*:*:*:*:* Versions 2.3.3 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:2.3.4:*:*:*:*:*:*:* Versions 2.3.4 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:2.3.5:*:*:*:*:*:*:* Versions 2.3.5 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:2.3.7:*:*:*:*:*:*:* Versions 2.3.7 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:2.4.1:*:*:*:*:*:*:* Versions 2.4.1 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:2.4.2:*:*:*:*:*:*:* Versions 2.4.2 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:2.4.3:*:*:*:*:*:*:* Versions 2.4.3 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:2.4.4:*:*:*:*:*:*:* Versions 2.4.4 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:2.4.6:*:*:*:*:*:*:* Versions 2.4.6 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:2.5.1:*:*:*:*:*:*:* Versions 2.5.1 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:2.5.2:*:*:*:*:*:*:* Versions 2.5.2 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:2.5.3:*:*:*:*:*:*:* Versions 2.5.3 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:2.5.4:*:*:*:*:*:*:* Versions 2.5.4 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:2.6.1:*:*:*:*:*:*:* Versions 2.6.1 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:2.6.4:*:*:*:*:*:*:* Versions 2.6.4 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:2.6.5:*:*:*:*:*:*:* Versions 2.6.5 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:2.6.6:*:*:*:*:*:*:* Versions 2.6.6 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:2.6.7:*:*:*:*:*:*:* Versions 2.6.7 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:2.7.1:*:*:*:*:*:*:* Versions 2.7.1 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:3.0:*:*:*:*:*:*:* Versions 3.0 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:3.0.1:*:*:*:*:*:*:* Versions 3.0.1 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:3.1:*:*:*:*:*:*:* Versions 3.1 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:3.1.1:*:*:*:*:*:*:* Versions 3.1.1 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:3.1.2:*:*:*:*:*:*:* Versions 3.1.2 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:3.1.3:*:*:*:*:*:*:* Versions 3.1.3 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:3.2:*:*:*:*:*:*:* Versions 3.2 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:3.2:alpha:*:*:*:*:*:* Versions 3.2 alpha Vulnerable ·python-pillow
Remediation
Red Hat 3 advisories
- RHSA-2011:0554 Released 2011-05-19 · Red Hat rating Moderatepython security, bug fix, and enhancement update
- Red Hat Enterprise Linux Desktop (v. 6) python-2.6.6-20.el6, python-libs-2.6.6-20.el6, tkinter-2.6.6-20.el6
- Red Hat Enterprise Linux Desktop Optional (v. 6) python-2.6.6-20.el6, python-devel-2.6.6-20.el6, python-test-2.6.6-20.el6 +1
- Red Hat Enterprise Linux HPC Node (v. 6) python-2.6.6-20.el6, python-libs-2.6.6-20.el6
- Red Hat Enterprise Linux HPC Node Optional (v. 6) python-2.6.6-20.el6, python-devel-2.6.6-20.el6, python-test-2.6.6-20.el6 +2
- Red Hat Enterprise Linux Server (v. 6) python-2.6.6-20.el6, python-devel-2.6.6-20.el6, python-docs-2.6.6-2.el6 +2
- Red Hat Enterprise Linux Server Optional (v. 6) python-2.6.6-20.el6, python-test-2.6.6-20.el6, python-tools-2.6.6-20.el6 +1
- Red Hat Enterprise Linux Workstation (v. 6) python-2.6.6-20.el6, python-devel-2.6.6-20.el6, python-docs-2.6.6-2.el6 +2
- Red Hat Enterprise Linux Workstation Optional (v. 6) python-2.6.6-20.el6, python-test-2.6.6-20.el6, python-tools-2.6.6-20.el6
- RHSA-2011:0491 Released 2011-05-05 · Red Hat rating Moderatepython security update
- Red Hat Enterprise Linux AS version 4 python-2.3.4-14.10.el4, python-2.3.4-14.10.el4.i386, python-2.3.4-14.10.el4.ia64 +17
- Red Hat Enterprise Linux Desktop version 4 python-2.3.4-14.10.el4, python-2.3.4-14.10.el4.i386, python-devel-2.3.4-14.10.el4 +7
- Red Hat Enterprise Linux ES version 4 python-2.3.4-14.10.el4, python-2.3.4-14.10.el4.i386, python-2.3.4-14.10.el4.ia64 +12
- Red Hat Enterprise Linux WS version 4 python-2.3.4-14.10.el4, python-2.3.4-14.10.el4.i386, python-2.3.4-14.10.el4.ia64 +12
- RHSA-2011:0492 Released 2011-05-05 · Red Hat rating Moderatepython security update
- Red Hat Enterprise Linux (v. 5 server) python-2.4.3-44.el5, python-2.4.3-44.el5.i386, python-2.4.3-44.el5.ia64 +17
- Red Hat Enterprise Linux Desktop (v. 5 client) python-2.4.3-44.el5, python-2.4.3-44.el5.i386, python-libs-2.4.3-44.el5 +5
- Red Hat Enterprise Linux Desktop Workstation (v. 5 client) python-2.4.3-44.el5, python-devel-2.4.3-44.el5, python-devel-2.4.3-44.el5.i386
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux (v. 5 server) | Fixed | RHSA-2011:0492 |
| Red Hat Enterprise Linux AS version 4 | Fixed | RHSA-2011:0491 |
| Red Hat Enterprise Linux Desktop (v. 5 client) | Fixed | RHSA-2011:0492 |
| Red Hat Enterprise Linux Desktop (v. 6) | Fixed | RHSA-2011:0554 |
| Red Hat Enterprise Linux Desktop Optional (v. 6) | Fixed | RHSA-2011:0554 |
| Red Hat Enterprise Linux Desktop Workstation (v. 5 client) | Fixed | RHSA-2011:0492 |
| Red Hat Enterprise Linux Desktop version 4 | Fixed | RHSA-2011:0491 |
| Red Hat Enterprise Linux ES version 4 | Fixed | RHSA-2011:0491 |
| Red Hat Enterprise Linux HPC Node (v. 6) | Fixed | RHSA-2011:0554 |
| Red Hat Enterprise Linux HPC Node Optional (v. 6) | Fixed | RHSA-2011:0554 |
| Red Hat Enterprise Linux Server (v. 6) | Fixed | RHSA-2011:0554 |
| Red Hat Enterprise Linux Server Optional (v. 6) | Fixed | RHSA-2011:0554 |
| Red Hat Enterprise Linux WS version 4 | Fixed | RHSA-2011:0491 |
| Red Hat Enterprise Linux Workstation (v. 6) | Fixed | RHSA-2011:0554 |
| Red Hat Enterprise Linux Workstation Optional (v. 6) | Fixed | RHSA-2011:0554 |
Timeline
- 2026-10-02 Threatist record created from CVE-2011-1521
- 2026-10-03 Alias added: GHSA-cq22-fw8f-mvcw
References
Patch 4
Advisory 7
Other 11
- [oss-security] 20110916 Re: CVE Request -- Django: v1.3.1, v1.2.7 multiple security flaws
- [oss-security] 20110324 CVE Request -- Python (urllib, urllib2): Improper management of ftp:// and file:// URL schemes
- [oss-security] 20110328 Re: CVE Request -- Python (urllib, urllib2): Improper management of ftp:// and file:// URL schemes
- http://hg.python.org/cpython/file/96a6c128822b/Misc/NEWS
- https://bugzilla.redhat.com/show_bug.cgi?id=737366
- http://hg.python.org/cpython/file/b2934d98dac1/Misc/NEWS
- [oss-security] 20110911 CVE Request -- Django: v1.3.1, v1.2.7 multiple security flaws
- http://support.apple.com/kb/HT5002
- https://www.djangoproject.com/weblog/2011/sep/10/127/
- [oss-security] 20110913 Re: CVE Request -- Django: v1.3.1, v1.2.7 multiple security flaws
- https://www.djangoproject.com/weblog/2011/sep/09/
More python-pillow Python vulnerabilities
- TI-2016-01993 The DES and Triple DES ciphers, as used in the TLS, SSH, and IPSec protocols and other… CVSS 3.1HIGH 7.5
- TI-2022-24108 An XML External Entity (XXE) issue was discovered in Python through 3.9.1. CVSS 3.1CRITICAL 9.8
- TI-2022-17508 The Keccak XKCP SHA-3 reference implementation before fdc6fef has an integer overflow and… CVSS 3.1CRITICAL 9.8
- TI-2021-02254 Python 3.x through 3.9.1 has a buffer overflow in PyCArg_repr in _ctypes/callproc.c… CVSS 3.1CRITICAL 9.8
- TI-2007-04413 Directory traversal vulnerability in the (1) extract and (2) extractall functions in the… CVSS 3.1CRITICAL 9.8
- TI-2014-00217 OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly… CVSS 3.1HIGH 7.4
Sources
- CVE-2011-1521 · CVE Program
- CVE-2011-1521 · NVD
- FIRST EPSS
- GHSA-cq22-fw8f-mvcw · GitHub Advisory Database · CC BY 4.0
- CVE-2011-1521 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences