CVE-2011-4944

python: distutils creates ~/.pypirc insecurely

Published Aug 27, 2012 CVSS 2.0 · 1.9 Low EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-25-1 python2.6 security update
EUVD EUVD EUVD-2011-4853 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.
Ubuntu USN Ubuntu USN USN-1592-1 Python 2.7 vulnerabilities
Ubuntu USN Ubuntu USN USN-1596-1 Python 2.6 vulnerabilities
Ubuntu USN Ubuntu USN USN-1613-1 Python 2.5 vulnerabilities
Ubuntu USN Ubuntu USN USN-1613-2 Python 2.4 vulnerabilities
Ubuntu USN Ubuntu USN USN-1615-1 Python 3.2 vulnerabilities
Ubuntu USN Ubuntu USN USN-1616-1 Python 3.1 vulnerabilities
History

No history.

Weaknesses

Sources

Status
PUBLISHED
Assigner
redhat
Published
Updated
Aug 7, 2024, 12:23 AM
Reserved
Dec 23, 2011, 12:00 AM
Status
Modified
Published
Aug 27, 2012, 11:55 PM
Modified
Jun 16, 2026, 11:35 PM
Severity
Low
Public date
Nov 30, 2011, 12:00 AM