CVE-2011-1521

urllib2): Improper management of ftp:// and file:// URL schemes (Issue #11662)

Published May 24, 2011 CVSS 2.0 · 6.4 Medium EPSS 3.6% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-25-1 python2.6 security update
EUVD EUVD EUVD-2011-1522 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.
Ubuntu USN Ubuntu USN USN-1314-1 Python 3 vulnerabilities
Ubuntu USN Ubuntu USN USN-1592-1 Python 2.7 vulnerabilities
Ubuntu USN Ubuntu USN USN-1596-1 Python 2.6 vulnerabilities
Ubuntu USN Ubuntu USN USN-1613-1 Python 2.5 vulnerabilities
Ubuntu USN Ubuntu USN USN-1613-2 Python 2.4 vulnerabilities
History

No history.

Weaknesses

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Aug 6, 2024, 10:28 PM
Reserved
Mar 28, 2011, 12:00 AM
Status
Modified
Published
May 24, 2011, 11:55 PM
Modified
Jun 16, 2026, 11:29 PM
Severity
Moderate
Public date
Mar 24, 2011, 12:00 AM