python: os.makedirs(exist_ok=True) is not thread-safe in Python 3.x
Published Nov 16, 2014
3.3
LOWCVSS 2.0
EPSS 0.36%
Description
Race condition in the _get_masked_mode function in Lib/os.py in Python 3.2 through 3.5, when exist_ok is set to true and multiple threads are used, might allow local users to bypass intended file permissions by leveraging a separate application vulnerability before the umask has been set to the expected value.
Affected products
No data.
- 3.2.0
- 3.2.1
- 3.2.2
- 3.2.3
- 3.2.4
- 3.2.5
- 3.2.6
- 3.3.0
- 3.3.1
- 3.3.2
- 3.3.3
- 3.3.4
- 3.3.5
- 3.3.6
- 3.4.0
- 3.4.1
- 3.4.2
No data.
Red Hat Enterprise Linux 5
python
Not affected
Red Hat Enterprise Linux 6
python
Not affected
Red Hat Enterprise Linux 7
python
Not affected
Red Hat Software Collections
python27-python
Not affected
Red Hat Software Collections
python33-python
Will not fix
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 5 | python | Not affected | n/a |
| Red Hat Enterprise Linux 6 | python | Not affected | n/a |
| Red Hat Enterprise Linux 7 | python | Not affected | n/a |
| Red Hat Software Collections | python27-python | Not affected | n/a |
| Red Hat Software Collections | python33-python | Will not fix | n/a |
No package ranges for this CVE.
Remediation
Red Hat statement
Not vulnerable. This issue did not affect the versions of python as shipped with Red Hat Enterprise Linux 5 and 6.
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:P/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 (9 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 0.36% (0.00356) | 26.94th | v5 (v2026.06.15) |
| Jun 15, 2026 | 0.36% (0.00356) | 27.23th | v5 (v2026.06.15) |
| Mar 17, 2025 | 0.05% (0.00046) | 11.18th | v4 (v2025.03.14) |
| Dec 12, 2024 | 0.04% (0.00042) | 5.07th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.04% (0.00042) | 5.63th | v3 (v2023.03.01) |
| Mar 6, 2023 | 1.10% (0.01104) | 54.09th | v2 (v2022.01.01) |
| Sep 17, 2022 | 1.10% (0.01104) | 52.45th | v2 (v2022.01.01) |
| Apr 1, 2022 | 1.10% (0.01104) | 50.41th | v2 (v2022.01.01) |
| Feb 4, 2022 | 1.10% (0.01104) | 28.85th | v2 (v2022.01.01) |
References (12)
- http://bugs.python.org/issue21082 x_refsource_CONFIRMVendor Advisory
- http://lists.opensuse.org/opensuse-security-announce/2020-01/msg00040.html vendor-advisoryx_refsource_SUSE
- http://lists.opensuse.org/opensuse-updates/2014-05/msg00007.html vendor-advisoryx_refsource_SUSE
- http://lists.opensuse.org/opensuse-updates/2014-05/msg00008.html vendor-advisoryx_refsource_SUSE
- http://www.openwall.com/lists/oss-security/2014/03/28/15 mailing-listx_refsource_MLIST
- http://www.openwall.com/lists/oss-security/2014/03/29/5 mailing-listx_refsource_MLIST
- http://www.openwall.com/lists/oss-security/2014/03/30/4 mailing-listx_refsource_MLIST
- https://access.redhat.com/security/cve/CVE-2014-2667 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1082177 Issue Tracking
- https://nvd.nist.gov/vuln/detail/CVE-2014-2667
- https://security.gentoo.org/glsa/201503-10 vendor-advisoryx_refsource_GENTOO
- https://www.cve.org/CVERecord?id=CVE-2014-2667
| Link | Providers | Tags |
|---|---|---|
| http://bugs.python.org/issue21082 | x_refsource_CONFIRMVendor Advisory | |
| http://lists.opensuse.org/opensuse-security-announce/2020-01/msg00040.html | vendor-advisoryx_refsource_SUSE | |
| http://lists.opensuse.org/opensuse-updates/2014-05/msg00007.html | vendor-advisoryx_refsource_SUSE | |
| http://lists.opensuse.org/opensuse-updates/2014-05/msg00008.html | vendor-advisoryx_refsource_SUSE | |
| http://www.openwall.com/lists/oss-security/2014/03/28/15 | mailing-listx_refsource_MLIST | |
| http://www.openwall.com/lists/oss-security/2014/03/29/5 | mailing-listx_refsource_MLIST | |
| http://www.openwall.com/lists/oss-security/2014/03/30/4 | mailing-listx_refsource_MLIST | |
| https://access.redhat.com/security/cve/CVE-2014-2667 | Vendor Advisory | |
| https://bugzilla.redhat.com/show_bug.cgi?id=1082177 | Issue Tracking | |
| https://nvd.nist.gov/vuln/detail/CVE-2014-2667 | ||
| https://security.gentoo.org/glsa/201503-10 | vendor-advisoryx_refsource_GENTOO | |
| https://www.cve.org/CVERecord?id=CVE-2014-2667 |
Change history (0)
No recorded changes yet.