CVE-2011-1521: 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…
Noroxi assessment
Priority: Monitor (action score 26/100)
- The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
- Probability of exploitation in the next 30 days: 3.5% (FIRST EPSS); higher than 89.5% of all records.
- No special conditions are required; it is repeatable.
- Fixed version: python2.7 (Debian:11) 2.7.1-7; python2.6 (Debian:6.0) 2.6.6-8+deb6u1; python (openSUSE:Tumbleweed) 2.7.18-8.1.
Low priority for now. Upgrade to python2.7 (Debian:11) 2.7.1-7; python2.6 (Debian:6.0) 2.6.6-8+deb6u1; python (openSUSE:Tumbleweed) 2.7.18-8.1 or later.
Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it
Primary sources: NVD · CVE.org · FIRST EPSS
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.
- Published
- May 24, 2011
- Updated
- Jun 16, 2026
- EPSS
- 3.5% · 89th percentile
- CWE
- CWE-399
Report tools
Action score
26
Low priority for now.
- CVSS
- 25 / 40 · 6.4 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 1 / 30 · 3.5%
Get told when this record changes
- Not in KEV: no record of exploitation in the wild
- No public exploit code on record
- A fix has been released
If any of these changes, we'll tell you in the daily email digest.
Is your version affected? Check itNoroxi analysis
What does it mean in your environment?
The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.
We use this product, ask for helpAffected systems
Is your version affected?
Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.
| Vendor | Product | CPE |
|---|---|---|
| python | python | cpe:2.3:a:python:python |
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- python python2.0
- python python2.0.1
- python python2.1
- python python2.1.1
- python python2.1.2
- python python2.1.3
- python python2.2
- python python2.2.1
+12 more rows
- python python2.2.2
- python python2.2.3
- python python2.3.1
- python python2.3.2
- python python2.3.3
- python python2.3.4
- python python2.3.5
- python python2.3.7
- python python2.4.1
- python python2.4.2
- python python2.4.3
- python python2.4.4
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Debian:11 | python2.7 | before 2.7.1-7 | 2.7.1-7 |
| Debian:6.0 | python2.6 | before 2.6.6-8+deb6u1 | 2.6.6-8+deb6u1 |
| openSUSE:Tumbleweed | python | before 2.7.18-8.1 | 2.7.18-8.1 |
| openSUSE:Tumbleweed | python-base | before 2.7.12-1.4 | 2.7.12-1.4 |
| Red Hat:enterprise_linux:4::as | python | before 0:2.3.4-14.10.el4 | 0:2.3.4-14.10.el4 |
| Red Hat:enterprise_linux:4::as | python-debuginfo | before 0:2.3.4-14.10.el4 | 0:2.3.4-14.10.el4 |
| Red Hat:enterprise_linux:4::as | python-devel | before 0:2.3.4-14.10.el4 | 0:2.3.4-14.10.el4 |
| Red Hat:enterprise_linux:4::as | python-docs | before 0:2.3.4-14.10.el4 | 0:2.3.4-14.10.el4 |
| Red Hat:enterprise_linux:4::as | python-tools | before 0:2.3.4-14.10.el4 | 0:2.3.4-14.10.el4 |
| Red Hat:enterprise_linux:4::as | tkinter | before 0:2.3.4-14.10.el4 | 0:2.3.4-14.10.el4 |
| Red Hat:enterprise_linux:5::client | python-libs | before 0:2.4.3-44.el5 | 0:2.4.3-44.el5 |
| Red Hat:enterprise_linux:5::client | python-tools | before 0:2.4.3-44.el5 | 0:2.4.3-44.el5 |
| Red Hat:enterprise_linux:5::client | tkinter | before 0:2.4.3-44.el5 | 0:2.4.3-44.el5 |
| Red Hat:enterprise_linux:5::client_workstation | python | before 0:2.4.3-44.el5 | 0:2.4.3-44.el5 |
| Red Hat:enterprise_linux:5::client_workstation | python-debuginfo | before 0:2.4.3-44.el5 | 0:2.4.3-44.el5 |
| Red Hat:enterprise_linux:5::client_workstation | python-devel | before 0:2.4.3-44.el5 | 0:2.4.3-44.el5 |
| Red Hat:enterprise_linux:6::client | python | before 0:2.6.6-20.el6 | 0:2.6.6-20.el6 |
| Red Hat:enterprise_linux:6::client | python-debuginfo | before 0:2.6.6-20.el6 | 0:2.6.6-20.el6 |
| Red Hat:enterprise_linux:6::client | python-devel | before 0:2.6.6-20.el6 | 0:2.6.6-20.el6 |
| Red Hat:enterprise_linux:6::client | python-libs | before 0:2.6.6-20.el6 | 0:2.6.6-20.el6 |
| Red Hat:enterprise_linux:6::client | python-test | before 0:2.6.6-20.el6 | 0:2.6.6-20.el6 |
| Red Hat:enterprise_linux:6::client | python-tools | before 0:2.6.6-20.el6 | 0:2.6.6-20.el6 |
| Red Hat:enterprise_linux:6::client | tkinter | before 0:2.6.6-20.el6 | 0:2.6.6-20.el6 |
| Red Hat:enterprise_linux:6::server | python-docs | before 0:2.6.6-2.el6 | 0:2.6.6-2.el6 |
+2
Same product
python: all recordsOther highest-scoring records for the same primary product.
- CVE-2016-5636Integer overflow in the get_data function in zipimport.c in CPython (aka Python) before 2.7.12, 3.x before 3.4.5, and 3.5.x before 3.5.2…47Plan
- CVE-2007-4559Directory traversal vulnerability in the (1) extract and (2) extractall functions in the tarfile module in Python allows user-assisted…47Plan
- CVE-2021-3177Python 3.x through 3.9.1 has a buffer overflow in PyCArg_repr in _ctypes/callproc.c, which may lead to remote code execution in certain…46Plan
Published before and after this one in the same product
- ← EarlierCVE-2010-3493Oct 19, 2010 · Multiple race conditions in smtpd.py in the smtpd module in Python 2.6, 2.7, 3.1, and 3.2 alpha allow remote attackers to cause a denial of…18Monitor
- ← EarlierCVE-2011-1015May 9, 2011 · The is_cgi method in CGIHTTPServer.py in the CGIHTTPServer module in Python 2.5, 2.6, and 3.0 allows remote attackers to read script source…21Monitor
- Later →CVE-2011-4940Jun 27, 2012 · The list_directory function in Lib/SimpleHTTPServer.py in SimpleHTTPServer in Python before 2.5.6c1, 2.6.x before 2.6.7 rc2, and 2.7.x…11Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| debian:python2.6 | 2.6.6-8+deb6u1 · Debian:6.0 | Package registry (OSV) |
| debian:python2.7 | 2.7.1-7 · Debian:11 | Package registry (OSV) |
| opensuse:python | 2.7.18-8.1 · openSUSE:Tumbleweed | Package registry (OSV) |
| opensuse:python-base | 2.7.12-1.4 · openSUSE:Tumbleweed | Package registry (OSV) |
| red hat:python | 0:2.3.4-14.10.el4 · Red Hat:enterprise_linux:4::as | Package registry (OSV) |
| red hat:python-debuginfo | 0:2.3.4-14.10.el4 · Red Hat:enterprise_linux:4::as | Package registry (OSV) |
| red hat:python-devel | 0:2.3.4-14.10.el4 · Red Hat:enterprise_linux:4::as | Package registry (OSV) |
| red hat:python-docs | 0:2.3.4-14.10.el4 · Red Hat:enterprise_linux:4::as | Package registry (OSV) |
| red hat:python-libs | 0:2.4.3-44.el5 · Red Hat:enterprise_linux:5::client | Package registry (OSV) |
| red hat:python-test | 0:2.6.6-20.el6 · Red Hat:enterprise_linux:6::client | Package registry (OSV) |
| red hat:python-tools | 0:2.3.4-14.10.el4 · Red Hat:enterprise_linux:4::as | Package registry (OSV) |
| red hat:tkinter | 0:2.3.4-14.10.el4 · Red Hat:enterprise_linux:4::as | Package registry (OSV) |
| suse:python | 2.7.17-7.32.2 · SUSE:Linux Enterprise Module for Basesystem 15 | Package registry (OSV) |
| suse:python-base | 2.7.17-7.32.1 · SUSE:Linux Enterprise Module for Basesystem 15 | Package registry (OSV) |
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
Patch and commit links
Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.
Not on record for this CVE: EPSS history · researcher credit · variant or chain candidate · public bounty program.
Technical details
Attack conditions
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- P · data can be read
- Integrity
- none
- Availability
- P · the service can be disrupted
- Attack complexity
- Low
- Confidentiality impact
- P
- Integrity impact
- None
- Availability impact
- P
Weakness class (CWE)
CWE-399 · Resource Management ErrorsCVSS vector
AV:N/AC:L/Au:N/C:P/I:N/A:P
nvd-primary
Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
MITRE has no CAPEC/ATT&CK mapping for this CWE.
Change log (1)
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Show all references (19 more)Show less
- hg.python.org/cpython/file/96a6c128822b/Misc/NEWS
- hg.python.org/cpython/file/b2934d98dac1/Misc/NEWS
- hg.python.org/cpython/rev/96a6c128822b/
- hg.python.org/cpython/rev/b2934d98dac1/
- lists.apple.com/archives/Security-announce/2011//Oct/msg00003.html
- lists.opensuse.org/opensuse-security-announce/2011-05/msg00005.html
- openwall.com/lists/oss-security/2011/03/24/5
- openwall.com/lists/oss-security/2011/03/28/2
- openwall.com/lists/oss-security/2011/09/11/1
- openwall.com/lists/oss-security/2011/09/13/2
- openwall.com/lists/oss-security/2011/09/15/5
- secunia.com/advisories/50858
- secunia.com/advisories/51024
- secunia.com/advisories/51040
- securitytracker.com/id?1025488
- support.apple.com/kb/HT5002
- www.mandriva.com/security/advisories?name=MDVSA-2011:096
- www.ubuntu.com/usn/USN-1592-1
- www.ubuntu.com/usn/USN-1596-1
Vendor advisories and official records. Exploit/PoC links are deliberately left out.