Live threats
VulnFox

All CVEs / Python

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Python.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected products (CPE)

VendorProductVersions
pythonpython2.0
pythonpython2.0.1
pythonpython2.1
pythonpython2.1.1
pythonpython2.1.2
pythonpython2.1.3
pythonpython2.2
pythonpython2.2.1
pythonpython2.2.2
pythonpython2.2.3
pythonpython2.3.1
pythonpython2.3.2
pythonpython2.3.3
pythonpython2.3.4
pythonpython2.3.5
pythonpython2.3.7
pythonpython2.4.1
pythonpython2.4.2
pythonpython2.4.3
pythonpython2.4.4
pythonpython2.4.6
pythonpython2.5.1
pythonpython2.5.2
pythonpython2.5.3
pythonpython2.5.4
pythonpython2.6.1
pythonpython2.6.4
pythonpython2.6.5
pythonpython2.6.6
pythonpython2.6.7
pythonpython2.7.1
pythonpython3.0
pythonpython3.0.1
pythonpython3.1
pythonpython3.1.1
pythonpython3.1.2
pythonpython3.1.3
pythonpython3.2
pythonpython3.2

Official sources

References

Links published by the sources. Open them with care.