All reports
Medium

os.makedirs() not thread-safe

Affected versions

Pythoncpython
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2014-2667

Probability of exploitation in the next 30 days: 0.36%

FIRST EPSS · 2026-11-21

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.

Links