Skip to content
OpenAdvisories
Unscored CVE-2011-1521 EUVD-2011-1522GHSA-cq22-fw8f-mvcw

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: U…

Published May 24, 2011 · Updated Aug 6, 2024 · Assigned by mitre

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 11 python2.7 2.7.1-7 —
Debian 6.0 python2.6 2.6.6-8+deb6u1 DLA-25-1
ReleasePackageFixed inAdvisory
RHEL 6 python +5 2.6.6-20.el6 RHSA-2011:0554
RHEL 6 python-docs 2.6.6-2.el6 RHSA-2011:0554
RHEL 5 python +4 2.4.3-44.el5 RHSA-2011:0492
RHEL 4 python +4 2.3.4-14.10.el4 RHSA-2011:0491
ReleasePackageFixed inAdvisory
SLES 15 SP1 python 2.7.17-7.32.2 SUSE-SU-2020:0234-1
SLES 15 SP1 python-base 2.7.17-7.32.1 SUSE-SU-2020:0234-1
SLES 15 python 2.7.17-7.32.2 SUSE-SU-2020:0234-1
SLES 15 python-base 2.7.17-7.32.1 SUSE-SU-2020:0234-1
SLES 2 python 2.7.17-7.32.2 SUSE-SU-2020:0234-1
SLES 2 python-base 2.7.17-7.32.1 SUSE-SU-2020:0234-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed python 2.7.18-8.1 openSUSE-SU-2024:11202-1
openSUSE Tumbleweed python-base 2.7.12-1.4 openSUSE-SU-2024:10536-1

Advisories 7

References