CVE-2011-4944

Summary

CVECVE-2011-4944
StatePUBLISHED
Assignerredhat
Source PriorityCVE Program / NVD first with legacy fallback
Published2012-08-27 23:55:01 UTC
Updated2026-04-29 01:13:23 UTC
DescriptionPython 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.

Risk And Classification

Primary CVSS: v2.0 1.9 from [email protected]

AV:L/AC:M/Au:N/C:P/I:N/A:N

Problem Types: CWE-264 | n/a

CVSS v2.0 Breakdown

Access Vector
Local
Access Complexity
Medium
Authentication
None
Confidentiality
Partial
Integrity
None
Availability
None

AV:L/AC:M/Au:N/C:P/I:N/A:N

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Application Python Python 2.6.1 All All All
Application Python Python 2.6.2 All All All
Application Python Python 2.6.2150 All All All
Application Python Python 2.6.3 All All All
Application Python Python 2.6.4 All All All
Application Python Python 2.6.5 All All All
Application Python Python 2.6.6 All All All
Application Python Python 2.6.6150 All All All
Application Python Python 2.6.7 All All All
Application Python Python 2.6.8 All All All
Application Python Python 2.7.1 All All All
Application Python Python 2.7.1 rc1 All All
Application Python Python 2.7.1150 All All All
Application Python Python 2.7.1150 All All All
Application Python Python 2.7.2 rc1 All All
Application Python Python 2.7.2150 All All All
Application Python Python 2.7.3 All All All
Application Python Python 3.0 All All All
Application Python Python 3.0.1 All All All
Application Python Python 3.1 All All All
Application Python Python 3.1.1 All All All
Application Python Python 3.1.2 All All All
Application Python Python 3.1.2150 All All All
Application Python Python 3.1.3 All All All
Application Python Python 3.1.4 All All All
Application Python Python 3.1.5 All All All
Application Python Python 3.2 All All All
Application Python Python 3.2 alpha All All

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Na N/a affected n/a Not specified

References

ReferenceSourceLinkTags
USN-1613-2: Python 2.4 vulnerabilities | Ubuntu af854a3a-2127-422b-91ae-364da2661108 www.ubuntu.com
Security Advisory SA50858 - Ubuntu update for python - Secunia af854a3a-2127-422b-91ae-364da2661108 secunia.com
bugs.python.org/file23824/pypirc-secure.diff af854a3a-2127-422b-91ae-364da2661108 bugs.python.org
USN-1616-1: Python 3.1 vulnerabilities | Ubuntu af854a3a-2127-422b-91ae-364da2661108 www.ubuntu.com
USN-1613-1: Python 2.5 vulnerabilities | Ubuntu af854a3a-2127-422b-91ae-364da2661108 www.ubuntu.com
Issue 13512: ~/.pypirc created insecurely - Python tracker af854a3a-2127-422b-91ae-364da2661108 bugs.python.org
Security Advisory SA51087 - Ubuntu update for python3.1 - Secunia af854a3a-2127-422b-91ae-364da2661108 secunia.com
USN-1592-1: Python 2.7 vulnerabilities | Ubuntu af854a3a-2127-422b-91ae-364da2661108 www.ubuntu.com
Security Advisory SA51024 - Ubuntu update for python2.5 - Secunia af854a3a-2127-422b-91ae-364da2661108 secunia.com
Security Advisory SA51040 - Ubuntu update for python2.4 - Secunia af854a3a-2127-422b-91ae-364da2661108 secunia.com
[security-announce] openSUSE-SU-2020:0086-1: important: Security update af854a3a-2127-422b-91ae-364da2661108 lists.opensuse.org
APPLE-SA-2013-10-22-3 OS X Mavericks v10.9 af854a3a-2127-422b-91ae-364da2661108 lists.apple.com
USN-1615-1: Python 3.2 vulnerabilities | Ubuntu af854a3a-2127-422b-91ae-364da2661108 www.ubuntu.com
#650555 - python2.7: distutils creates .pypirc insecurely - Debian Bug report logs af854a3a-2127-422b-91ae-364da2661108 bugs.debian.org
oss-security - Re: CVE request: distutils creates ~/.pypirc insecurely af854a3a-2127-422b-91ae-364da2661108 www.openwall.com
oss-security - CVE request: distutils creates ~/.pypirc insecurely af854a3a-2127-422b-91ae-364da2661108 www.openwall.com
Security Advisory SA51089 - Ubuntu update for python3.2 - Secunia af854a3a-2127-422b-91ae-364da2661108 secunia.com
oss-security - Re: CVE request: distutils creates ~/.pypirc insecurely af854a3a-2127-422b-91ae-364da2661108 www.openwall.com
USN-1596-1: Python 2.6 vulnerabilities | Ubuntu af854a3a-2127-422b-91ae-364da2661108 www.ubuntu.com
758905 – (CVE-2011-4944) CVE-2011-4944 python: distutils creates ~/.pypirc insecurely af854a3a-2127-422b-91ae-364da2661108 bugzilla.redhat.com
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report