FlawAtlas
Search the atlas
CVE-2014-2667 Not scored

os.makedirs() not thread-safe

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.

Exploit probability 0.4%
Published November 16, 2014
Required by Not available
Last source change October 9, 2025

02 / AFFECTED SOFTWARE

Affected packages

Unknown Unknown

169 explicit affected versions

04 / EVIDENCE

Source records

Open Source Vulnerabilities PSF-2014-5

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.

View original source

05 / REFERENCES

Further evidence