Back

LOW

python: distutils creates ~/.pypirc insecurely

Published Aug 27, 2012

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.

Affected products

Remediation

Red Hat statement

The Red Hat Security Response Team has rated this issue as having low security impact. This issue is not currently planned to be addressed in future updates. For additional information, refer to the Issue Severity Classification: https://access.redhat.com/security/updates/classification/.

Metrics

Weaknesses (1)

References (23)

Change history (0)

No recorded changes yet.

Sources
CVE.org / MITRE
Status PUBLISHED
Assigner redhat
Published Aug 27, 2012
Updated Aug 7, 2024
Reserved Dec 23, 2011
NVD
Status Modified
Modified Jun 16, 2026
Red Hat
Severity Low
Public date Nov 30, 2011