python: distutils creates ~/.pypirc insecurely
Published Aug 27, 2012
1.9
LOWCVSS 2.0
EPSS 0.43%
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
No data.
- 2.6.1
- 2.6.2
- 2.6.3
- 2.6.4
- 2.6.5
- 2.6.6
- 2.6.7
- 2.6.8
- 2.6.2150
- 2.6.6150
- 2.7.1
- 2.7.1
- 2.7.2
- 2.7.3
- 2.7.1150
- 2.7.1150
- 2.7.2150
- 3.0
- 3.0.1
- 3.1
- 3.1.1
- 3.1.2
- 3.1.3
- 3.1.4
- 3.1.5
- 3.1.2150
- 3.2
- 3.2
No data.
Red Hat Enterprise Linux 5
python-0:2.4.3-46.el5_8.2
Fixed · RHSA-2012:0745
Red Hat Enterprise Linux 6
python-0:2.6.6-29.el6_2.2
Fixed · RHSA-2012:0744
Red Hat Enterprise Linux 4
python
Will not fix
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 5 | python-0:2.4.3-46.el5_8.2 | Fixed | RHSA-2012:0745 |
| Red Hat Enterprise Linux 6 | python-0:2.6.6-29.el6_2.2 | Fixed | RHSA-2012:0744 |
| Red Hat Enterprise Linux 4 | python | Will not fix | n/a |
No package ranges for this CVE.
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
No CVSS v4.0 score for this CVE.
No CVSS v3.1 score for this CVE.
No CVSS v3.0 score for this CVE.
AV:L/AC:M/Au:N/C:P/I:N/A:N
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2022–2026- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (10 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 0.43% (0.00429) | 34.77th | v5 (v2026.06.15) |
| Jun 15, 2026 | 0.43% (0.00432) | 34.25th | v5 (v2026.06.15) |
| Mar 17, 2025 | 0.04% (0.00045) | 10.98th | v4 (v2025.03.14) |
| Dec 12, 2024 | 0.04% (0.00044) | 11.89th | v3 (v2023.03.01) |
| Jul 2, 2024 | 0.04% (0.00044) | 10.25th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.04% (0.00044) | 8.24th | v3 (v2023.03.01) |
| Mar 6, 2023 | 1.55% (0.01547) | 74.98th | v2 (v2022.01.01) |
| Feb 23, 2023 | 1.55% (0.01547) | 74.94th | v2 (v2022.01.01) |
| Apr 1, 2022 | 1.55% (0.01547) | 72.92th | v2 (v2022.01.01) |
| Feb 4, 2022 | 1.55% (0.01547) | 51.82th | v2 (v2022.01.01) |
References (23)
- http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=650555 x_refsource_MISC
- http://bugs.python.org/file23824/pypirc-secure.diff x_refsource_CONFIRM
- http://bugs.python.org/issue13512 x_refsource_CONFIRM
- http://lists.apple.com/archives/security-announce/2013/Oct/msg00004.html vendor-advisoryx_refsource_APPLE
- http://lists.opensuse.org/opensuse-security-announce/2020-01/msg00040.html vendor-advisoryx_refsource_SUSE
- http://secunia.com/advisories/50858 third-party-advisoryx_refsource_SECUNIA
- http://secunia.com/advisories/51024 third-party-advisoryx_refsource_SECUNIA
- http://secunia.com/advisories/51040 third-party-advisoryx_refsource_SECUNIA
- http://secunia.com/advisories/51087 third-party-advisoryx_refsource_SECUNIA
- http://secunia.com/advisories/51089 third-party-advisoryx_refsource_SECUNIA
- http://www.openwall.com/lists/oss-security/2012/03/27/10 mailing-listx_refsource_MLIST
- http://www.openwall.com/lists/oss-security/2012/03/27/2 mailing-listx_refsource_MLIST
- http://www.openwall.com/lists/oss-security/2012/03/27/5 mailing-listx_refsource_MLIST
- http://www.ubuntu.com/usn/USN-1592-1 vendor-advisoryx_refsource_UBUNTU
- http://www.ubuntu.com/usn/USN-1596-1 vendor-advisoryx_refsource_UBUNTU
- http://www.ubuntu.com/usn/USN-1613-1 vendor-advisoryx_refsource_UBUNTU
- http://www.ubuntu.com/usn/USN-1613-2 vendor-advisoryx_refsource_UBUNTU
- http://www.ubuntu.com/usn/USN-1615-1 vendor-advisoryx_refsource_UBUNTU
- http://www.ubuntu.com/usn/USN-1616-1 vendor-advisoryx_refsource_UBUNTU
- https://access.redhat.com/security/cve/CVE-2011-4944 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=758905 x_refsource_MISCIssue Tracking
- https://nvd.nist.gov/vuln/detail/CVE-2011-4944
- https://www.cve.org/CVERecord?id=CVE-2011-4944
Change history (0)
No recorded changes yet.