CVE-2014-2667

python: os.makedirs(exist_ok=True) is not thread-safe in Python 3.x

Published Nov 16, 2014 CVSS 2.0 · 3.3 Low EPSS < 1% KEV · Not listed
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.

Analysis

No analysis available yet

Remediation

No remediation available yet

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2014-2699 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.
History

No history.

Weaknesses
  • CWE-362

    Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Aug 6, 2024, 10:21 AM
Reserved
Mar 26, 2014, 12:00 AM
Status
Modified
Published
Nov 16, 2014, 1:59 AM
Modified
Jun 17, 2026, 12:06 AM
Severity
Moderate
Public date
Mar 28, 2014, 12:00 AM