CONTENTUM.COMA specialist. A plan. A result.

Vulnerabilities · 2011 · Python

CVE-2011-1521
Python vulnerability

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

Python. The exact versions are in the references.

What to do now

  • Check your exposureFind out whether Python runs anywhere in your environment, including systems of suppliers.
  • UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
  • Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.

References

More vulnerabilities in Python products

Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.