All reports
Low

python: distutils creates ~/.pypirc insecurely

Affected versions

Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2011-4944

Probability of exploitation in the next 30 days: 0.43%

FIRST EPSS · 2026-11-18

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.