Permissions, Privileges, and Access Controls in Python - CVE-2011-4944

 

Permissions, Privileges, and Access Controls in Python - CVE-2011-4944

Published: August 28, 2012 / Updated: August 11, 2020


Vulnerability identifier: #VU43656
CSH Severity: Low
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:U/U:Clear
CVE-ID: CVE-2011-4944
CWE-ID: CWE-264
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: Python.org
Affected software:
Python

Detailed vulnerability description

The vulnerability allows a remote non-authenticated attacker to gain access to sensitive information.

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.


How to mitigate CVE-2011-4944

Install update from vendor's website.

Sources