Race Condition Affecting cpython package, versions [,3.7.12)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.36% (28th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-CONAN-CPYTHON-10075443
  • published8 May 2025
  • disclosed16 Nov 2014
  • creditUnknown

Introduced: 16 Nov 2014

CVE-2014-2667  (opens in a new tab)
CWE-362  (opens in a new tab)

How to fix?

Upgrade cpython to version 3.7.12 or higher.

Overview

Affected versions of this package are vulnerable to Race Condition. 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.

CVSS Base Scores

version 3.1