Race condition in Python - CVE-2014-2667

 

Race condition in Python - CVE-2014-2667

Published: November 16, 2014 / Updated: August 9, 2020


Vulnerability identifier: #VU41102
CSH Severity: Medium
CVSS v4: 5.1 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2014-2667
CWE-ID: CWE-362
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote non-authenticated attacker to read and manipulate data.

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 software

Python
Gentoo Linux
dev-lang/python

How to mitigate CVE-2014-2667

Install update from vendor's website.

dev-lang/python - update to 3.3.5-r1

External References

Related Security Bulletins