CVE-2014-2667 json
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 a…
published 2014-11-16 11 y ago modified 2026-06-17 4 mo ago also EUVD-2014-2699
- cvss
- 3.3
- version 2.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.4%
- EPSS 0.4% chance of exploitation in 30 days, percentile 29%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- python3 SLE Module for Basesystem 15 SP1, SLE Module for Basesystem 15 3.6.10-3.42.2
- python3-base SLE Module for Development Tools 15 SP1, SLE Module for Development Tools 15, SLE Module for Basesystem 15 SP1 +1 more 3.6.10-3.42.2
suse advisories SUSE-SU-2020:0114-1
- python315 openSUSE Tumbleweed 3.15.0~a1-1.1
- python314 openSUSE Tumbleweed 3.14.0~a1-1.1
- python313 openSUSE Tumbleweed 3.13.0~b3-1.1
- python310 openSUSE Tumbleweed 3.10.0rc1-4.2
- python36 openSUSE Tumbleweed 3.6.15-1.1
- python38 openSUSE Tumbleweed 3.8.12-1.2
- python39 openSUSE Tumbleweed 3.9.7-2.1
- python311 openSUSE Tumbleweed 3.11.0b1-1.1
opensuse advisories openSUSE-SU-2025:15713-1openSUSE-SU-2024:14434-1openSUSE-SU-2024:14109-1openSUSE-SU-2024:11283-1openSUSE-SU-2024:11284-1openSUSE-SU-2024:11285-1
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2014-2667 updated cvss 4.6
python: os.makedirs(exist_ok=True) is not thread-safe in Python 3.x
-
Red Hat Software Collections python33-python, python33-python-libs, python33-python-test, python33-python-tools, python33-python-tkinteraffected: no fix planned “Will not fix”
-
Red Hat Enterprise Linux 5 python Red Hat Enterprise Linux 6 python, tkinter, python-libs, python-test, python-tools Red Hat Enterprise Linux 7 python, tkinter, python-libs, python-test, python-tools Red Hat Software Collections python27-python, python27-tkinter, python27-python-libs, python27-python-test, python27-python-toolsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
0.36% chance of exploitation in the next 30 days, higher than 29% of all scored CVEs (FIRST EPSS, 2026-11-09).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 2.0 | 3.3 | AV:L/AC:M/Au:N/C:P/I:P/A:N |
Classification
- Weakness
-
- CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization
References
-
lists.opensuse.org
/opensuse-updates/2014-05/msg00008.html
vendor-advisory
-
security.gentoo.org
/glsa/201503-10
vendor-advisory
-
lists.opensuse.org
/opensuse-updates/2014-05/msg00007.html
vendor-advisory
-
lists.opensuse.org
/opensuse-security-announce/2020-01/msg00040.html
vendor-advisory
-
bugs.python.org
/issue21082
vendor-advisory
-
openwall.com
/lists/oss-security/2014/03/28/15
mailing-list
-
openwall.com
/lists/oss-security/2014/03/30/4
mailing-list
-
openwall.com
/lists/oss-security/2014/03/29/5
mailing-list
Sources
- CVE List CVE-2014-2667
- NVD CVE-2014-2667
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.