CVE-2014-2667: 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…
Noroxi assessment
Priority: Monitor (action score 13/100)
- The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
- Probability of exploitation in the next 30 days: 0.35% (FIRST EPSS).
- Fixed version: python3 (openSUSE:Leap 15.1) 3.6.10-lp151.6.7.1; python3-base (openSUSE:Leap 15.1) 3.6.10-lp151.6.7.1; python310 (openSUSE:Tumbleweed) 3.10.0rc1-4.2.
Low priority for now. Upgrade to python3 (openSUSE:Leap 15.1) 3.6.10-lp151.6.7.1; python3-base (openSUSE:Leap 15.1) 3.6.10-lp151.6.7.1; python310 (openSUSE:Tumbleweed) 3.10.0rc1-4.2 or later.
Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it
Primary sources: NVD · CVE.org · FIRST EPSS
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.
- Published
- Nov 15, 2014
- Updated
- Jun 16, 2026
- EPSS
- 0.3% · 29th percentile
- CWE
- CWE-362
Report tools
Action score
13
Low priority for now.
- CVSS
- 13 / 40 · 3.3 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 0 / 30 · 0.3%
Get told when this record changes
- Not in KEV: no record of exploitation in the wild
- No public exploit code on record
- A fix has been released
If any of these changes, we'll tell you in the daily email digest.
Is your version affected? Check itNoroxi analysis
What does it mean in your environment?
The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.
We use this product, ask for helpAffected systems
Is your version affected?
Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.
| Vendor | Product | CPE |
|---|---|---|
| python | python | cpe:2.3:a:python:python |
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- python python3.2.0
- python python3.2.1
- python python3.2.2
- python python3.2.3
- python python3.2.4
- python python3.2.5
- python python3.2.6
- python python3.3.0
+9 more rows
- python python3.3.1
- python python3.3.2
- python python3.3.3
- python python3.3.4
- python python3.3.5
- python python3.3.6
- python python3.4.0
- python python3.4.1
- python python3.4.2
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| openSUSE:Leap 15.1 | python3 | before 3.6.10-lp151.6.7.1 | 3.6.10-lp151.6.7.1 |
| openSUSE:Leap 15.1 | python3-base | before 3.6.10-lp151.6.7.1 | 3.6.10-lp151.6.7.1 |
| openSUSE:Tumbleweed | python310 | before 3.10.0rc1-4.2 | 3.10.0rc1-4.2 |
| openSUSE:Tumbleweed | python311 | before 3.11.0b1-1.1 | 3.11.0b1-1.1 |
| openSUSE:Tumbleweed | python312 | before 3.12.0a7-1.1 | 3.12.0a7-1.1 |
| openSUSE:Tumbleweed | python313 | before 3.13.0~b3-1.1 | 3.13.0~b3-1.1 |
| openSUSE:Tumbleweed | python314 | before 3.14.0~a1-1.1 | 3.14.0~a1-1.1 |
| openSUSE:Tumbleweed | python315 | before 3.15.0~a1-1.1 | 3.15.0~a1-1.1 |
| openSUSE:Tumbleweed | python36 | before 3.6.15-1.1 | 3.6.15-1.1 |
| openSUSE:Tumbleweed | python38 | before 3.8.12-1.2 | 3.8.12-1.2 |
| openSUSE:Tumbleweed | python39 | before 3.9.7-2.1 | 3.9.7-2.1 |
| SUSE:Linux Enterprise Module for Basesystem 15 | python3 | before 3.6.10-3.42.2 | 3.6.10-3.42.2 |
| SUSE:Linux Enterprise Module for Basesystem 15 | python3-base | before 3.6.10-3.42.2 | 3.6.10-3.42.2 |
Same product
python: all recordsOther highest-scoring records for the same primary product.
- CVE-2016-5636Integer overflow in the get_data function in zipimport.c in CPython (aka Python) before 2.7.12, 3.x before 3.4.5, and 3.5.x before 3.5.2…47Plan
- CVE-2007-4559Directory traversal vulnerability in the (1) extract and (2) extractall functions in the tarfile module in Python allows user-assisted…47Plan
- CVE-2021-3177Python 3.x through 3.9.1 has a buffer overflow in PyCArg_repr in _ctypes/callproc.c, which may lead to remote code execution in certain…46Plan
Published before and after this one in the same product
- ← EarlierCVE-2013-7040May 19, 2014 · Python 2.7 before 3.4 only uses the last eight bits of the prefix to randomize hash values, which causes it to compute hash values without…18Monitor
- ← EarlierCVE-2014-7185Oct 8, 2014 · Integer overflow in bufferobject.c in Python before 2.7.8 allows context-dependent attackers to obtain sensitive information from process…27Monitor
- Later →CVE-2014-9365Dec 12, 2014 · The HTTP clients in the (1) httplib, (2) urllib, (3) urllib2, and (4) xmlrpclib libraries in CPython (aka Python) 2.x before 2.7.9 and 3.x…24Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| opensuse:python3 | 3.6.10-lp151.6.7.1 · openSUSE:Leap 15.1 | Package registry (OSV) |
| opensuse:python3-base | 3.6.10-lp151.6.7.1 · openSUSE:Leap 15.1 | Package registry (OSV) |
| opensuse:python310 | 3.10.0rc1-4.2 · openSUSE:Tumbleweed | Package registry (OSV) |
| opensuse:python311 | 3.11.0b1-1.1 · openSUSE:Tumbleweed | Package registry (OSV) |
| opensuse:python312 | 3.12.0a7-1.1 · openSUSE:Tumbleweed | Package registry (OSV) |
| opensuse:python313 | 3.13.0~b3-1.1 · openSUSE:Tumbleweed | Package registry (OSV) |
| opensuse:python314 | 3.14.0~a1-1.1 · openSUSE:Tumbleweed | Package registry (OSV) |
| opensuse:python315 | 3.15.0~a1-1.1 · openSUSE:Tumbleweed | Package registry (OSV) |
| opensuse:python36 | 3.6.15-1.1 · openSUSE:Tumbleweed | Package registry (OSV) |
| opensuse:python38 | 3.8.12-1.2 · openSUSE:Tumbleweed | Package registry (OSV) |
| opensuse:python39 | 3.9.7-2.1 · openSUSE:Tumbleweed | Package registry (OSV) |
| suse:python3 | 3.6.10-3.42.2 · SUSE:Linux Enterprise Module for Basesystem 15 | Package registry (OSV) |
| suse:python3-base | 3.6.10-3.42.2 · SUSE:Linux Enterprise Module for Basesystem 15 | Package registry (OSV) |
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
Not on record for this CVE: EPSS history · patch commit or PR link · researcher credit · variant or chain candidate · public bounty program.
Technical details
Attack conditions
If successful
- Confidentiality
- P · data can be read
- Integrity
- P · data or configuration can be modified
- Availability
- none
- Attack complexity
- M
- Confidentiality impact
- P
- Integrity impact
- P
- Availability impact
- None
Weakness class (CWE)
CWE-362 · Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')CVSS vector
AV:L/AC:M/Au:N/C:P/I:P/A:N
nvd-primary
Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
Attack patterns (CAPEC)
ATT&CK techniques
—
Change log (1)
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Show all references (7 more)Show less
- lists.opensuse.org/opensuse-security-announce/2020-01/msg00040.html
- lists.opensuse.org/opensuse-updates/2014-05/msg00007.html
- lists.opensuse.org/opensuse-updates/2014-05/msg00008.html
- www.openwall.com/lists/oss-security/2014/03/28/15
- www.openwall.com/lists/oss-security/2014/03/29/5
- www.openwall.com/lists/oss-security/2014/03/30/4
- security.gentoo.org/glsa/201503-10
Vendor advisories and official records. Exploit/PoC links are deliberately left out.