Vulnerability in Python
CVE-2014-2667
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.
Vulnerability class: Race Condition
Published · last modified .
CVSS v2 metric
CVSS v2 base score 3.3 (Low). Vector: AV:L/AC:M/Au:N/C:P/I:P/A:N. This CVE predates CVSS v3 and has no v3 score from NVD.
EPSS exploit prediction
EPSS 0.004, 29.8th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Python — versions 3.2.0, 3.2.1, 3.2.2
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 1 other repository (jgsqware/clairctl). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- [oss-security] 20140328 CVE request: os.makedirs(exist_ok=True) is not thread-safe in Python (mailing-list)
- openSUSE-SU-2014:0597 (vendor-advisory)
- GLSA-201503-10 (vendor-advisory)
- [oss-security] 20140330 Re: CVE request: os.makedirs(exist_ok=True) is not thread-safe in Python (mailing-list)
- bugs.python.org/issue21082 (Vendor Advisory)
- [oss-security] 20140329 Re: [PSRT] CVE request: os.makedirs(exist_ok=True) is not thread-safe in Python (mailing-list)
- openSUSE-SU-2014:0596 (vendor-advisory)
- openSUSE-SU-2020:0086 (vendor-advisory)