Skip to content
OpenAdvisories
Unscored CVE-2011-4944 EUVD-2011-4853GHSA-2j46-98gf-6xf6

Python 2.6 through 3.2 creates ~/.pypirc with world-readable permissions before changing them after data has been written, which introduces…

Published Aug 27, 2012 · Updated Aug 7, 2024 · Assigned by redhat

Description

Python 2.6 through 3.2 creates ~/.pypirc with world-readable permissions before changing them after data has been written, which introduces a race condition that allows local users to obtain a username and password by reading this file.

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.3~rc2-2 —
Debian 6.0 python2.6 2.6.6-8+deb6u1 DLA-25-1
ReleasePackageFixed inAdvisory
RHEL 6 python +5 2.6.6-29.el6_2.2 RHSA-2012:0744
RHEL 5 python +4 2.4.3-46.el5_8.2 RHSA-2012:0745
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 SP1 python3 +1 3.6.10-3.42.2 SUSE-SU-2020:0114-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 15 python3 +1 3.6.10-3.42.2 SUSE-SU-2020:0114-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
openSUSE Tumbleweed python310 3.10.0rc1-4.2 openSUSE-SU-2024:11283-1
openSUSE Tumbleweed python311 3.11.0b1-1.1 openSUSE-SU-2024:12089-1
openSUSE Tumbleweed python312 3.12.0a7-1.1 openSUSE-SU-2024:12910-1
openSUSE Tumbleweed python313 3.13.0~b3-1.1 openSUSE-SU-2024:14109-1
openSUSE Tumbleweed python314 3.14.0~a1-1.1 openSUSE-SU-2024:14434-1
openSUSE Tumbleweed python315 3.15.0~a1-1.1 openSUSE-SU-2025:15713-1
openSUSE Tumbleweed python36 3.6.15-1.1 openSUSE-SU-2024:11284-1
openSUSE Tumbleweed python38 3.8.12-1.2 openSUSE-SU-2024:11285-1
openSUSE Tumbleweed python39 3.9.7-2.1 openSUSE-SU-2024:11286-1
openSUSE Leap 15.1 python3 +1 3.6.10-lp151.6.7.1 openSUSE-SU-2020:0086-1

Advisories 17

References