Race Condition Affecting python package, versions [,3.2.6rc1)[3.3a1,3.3.6rc1)[3.4a1,3.4.1rc1)


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-UNMANAGED-PYTHON-2317714
  • published14 Dec 2021
  • 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 python to version 3.2.6rc1, 3.3.6rc1, 3.4.1rc1 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