urllib2): Improper management of ftp:// and file:// URL schemes (Issue #11662)
Published May 24, 2011
6.4
MEDIUMCVSS 2.0
EPSS 3.56%
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.
Affected products
No data.
Configuration 1
- 2.0
- 2.0.1
- 2.1
- 2.1.1
- 2.1.2
- 2.1.3
- 2.2
- 2.2.1
- 2.2.2
- 2.2.3
- 2.3.1
- 2.3.2
- 2.3.3
- 2.3.4
- 2.3.5
- 2.3.7
- 2.4.1
- 2.4.2
- 2.4.3
- 2.4.4
- 2.4.6
- 2.5.1
- 2.5.2
- 2.5.3
- 2.5.4
- 2.6.1
- 2.6.4
- 2.6.5
- 2.6.6
- 2.6.7
- 2.7.1
No data.
Red Hat Enterprise Linux 4
python-0:2.3.4-14.10.el4
Fixed · RHSA-2011:0491
Red Hat Enterprise Linux 5
python-0:2.4.3-44.el5
Fixed · RHSA-2011:0492
Red Hat Enterprise Linux 6
python-0:2.6.6-20.el6
Fixed · RHSA-2011:0554
Red Hat Enterprise Linux 6
python-docs-0:2.6.6-2.el6
Fixed · RHSA-2011:0554
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 4 | python-0:2.3.4-14.10.el4 | Fixed | RHSA-2011:0491 |
| Red Hat Enterprise Linux 5 | python-0:2.4.3-44.el5 | Fixed | RHSA-2011:0492 |
| Red Hat Enterprise Linux 6 | python-0:2.6.6-20.el6 | Fixed | RHSA-2011:0554 |
| Red Hat Enterprise Linux 6 | python-docs-0:2.6.6-2.el6 | Fixed | RHSA-2011:0554 |
No package ranges for this CVE.
Remediation
No remediation recorded yet.
Metrics
No CVSS v4.0 score for this CVE.
No CVSS v3.1 score for this CVE.
No CVSS v3.0 score for this CVE.
AV:N/AC:L/Au:N/C:P/I:N/A:P
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2022–2026- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (13 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 3.56% (0.03564) | 88.96th | v5 (v2026.06.15) |
| Jun 15, 2026 | 4.27% (0.04266) | 89.76th | v5 (v2026.06.15) |
| Oct 28, 2025 | 1.00% (0.00996) | 76.21th | v4 (v2025.03.14) |
| Mar 30, 2025 | 2.29% (0.02293) | 83.25th | v4 (v2025.03.14) |
| Mar 29, 2025 | 4.68% (0.04677) | 81.84th | v4 (v2025.03.14) |
| Mar 17, 2025 | 2.29% (0.02293) | 83.56th | v4 (v2025.03.14) |
| Dec 17, 2024 | 11.75% (0.11748) | 95.28th | v3 (v2023.03.01) |
| Jun 12, 2023 | 13.63% (0.13626) | 94.80th | v3 (v2023.03.01) |
| Apr 19, 2023 | 14.94% (0.14942) | 94.95th | v3 (v2023.03.01) |
| Mar 7, 2023 | 19.19% (0.19186) | 95.43th | v3 (v2023.03.01) |
| Mar 6, 2023 | 4.36% (0.04358) | 88.02th | v2 (v2022.01.01) |
| Apr 1, 2022 | 4.36% (0.04358) | 86.83th | v2 (v2022.01.01) |
| Feb 4, 2022 | 4.36% (0.04358) | 70.59th | v2 (v2022.01.01) |
References (29)
- http://bugs.python.org/issue11662 x_refsource_CONFIRMPatch
- http://hg.python.org/cpython/file/96a6c128822b/Misc/NEWS x_refsource_CONFIRM
- http://hg.python.org/cpython/file/b2934d98dac1/Misc/NEWS x_refsource_CONFIRM
- http://hg.python.org/cpython/rev/96a6c128822b/ x_refsource_CONFIRMPatch
- http://hg.python.org/cpython/rev/b2934d98dac1/ x_refsource_CONFIRMPatch
- http://lists.apple.com/archives/Security-announce/2011//Oct/msg00003.html vendor-advisoryx_refsource_APPLE
- http://lists.opensuse.org/opensuse-security-announce/2011-05/msg00005.html vendor-advisoryx_refsource_SUSE
- http://openwall.com/lists/oss-security/2011/03/24/5 mailing-listx_refsource_MLIST
- http://openwall.com/lists/oss-security/2011/03/28/2 mailing-listx_refsource_MLIST
- http://openwall.com/lists/oss-security/2011/09/11/1 mailing-listx_refsource_MLIST
- http://openwall.com/lists/oss-security/2011/09/13/2 mailing-listx_refsource_MLIST
- http://openwall.com/lists/oss-security/2011/09/15/5 mailing-listx_refsource_MLIST
- http://secunia.com/advisories/50858 third-party-advisoryx_refsource_SECUNIA
- http://secunia.com/advisories/51024 third-party-advisoryx_refsource_SECUNIA
- http://secunia.com/advisories/51040 third-party-advisoryx_refsource_SECUNIA
- http://securitytracker.com/id?1025488 vdb-entryx_refsource_SECTRACK
- http://support.apple.com/kb/HT5002 x_refsource_CONFIRM
- http://www.mandriva.com/security/advisories?name=MDVSA-2011:096 vendor-advisoryx_refsource_MANDRIVA
- http://www.ubuntu.com/usn/USN-1592-1 vendor-advisoryx_refsource_UBUNTU
- http://www.ubuntu.com/usn/USN-1596-1 vendor-advisoryx_refsource_UBUNTU
- http://www.ubuntu.com/usn/USN-1613-1 vendor-advisoryx_refsource_UBUNTU
- http://www.ubuntu.com/usn/USN-1613-2 vendor-advisoryx_refsource_UBUNTU
- https://access.redhat.com/security/cve/CVE-2011-1521 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=690560 x_refsource_CONFIRMPatchIssue Tracking
- https://bugzilla.redhat.com/show_bug.cgi?id=737366 x_refsource_CONFIRM
- https://nvd.nist.gov/vuln/detail/CVE-2011-1521
- https://www.cve.org/CVERecord?id=CVE-2011-1521
- https://www.djangoproject.com/weblog/2011/sep/09/ x_refsource_CONFIRM
- https://www.djangoproject.com/weblog/2011/sep/10/127/ x_refsource_CONFIRM
Change history (0)
No recorded changes yet.