Race condition in the _get_masked_mode function in Lib/os.py in Python 3.2 through 3.5…
Key facts
- Attack vector
- Local
- Privileges required
- None
- User interaction
- — Not recorded in CVSS 2.0
- Attack complexity
- Medium
- Impact type
- —
- Confidentiality · integrity · availability
- Partial · Partial · None
- Fix status
- Will not fix Red Hat: no fix planned
Attack profile from CVSS 2.0 · NVD. Fix status from CNA and Red Hat.
Summary
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
CPE configurations NVD · 17
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:python:python:3.2.0:*:*:*:*:*:*:* | 3.2.0 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:3.2.1:*:*:*:*:*:*:* | 3.2.1 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:3.2.2:*:*:*:*:*:*:* | 3.2.2 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:3.2.3:*:*:*:*:*:*:* | 3.2.3 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:3.2.4:*:*:*:*:*:*:* | 3.2.4 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:3.2.5:*:*:*:*:*:*:* | 3.2.5 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:3.2.6:*:*:*:*:*:*:* | 3.2.6 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:3.3.0:*:*:*:*:*:*:* | 3.3.0 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:3.3.1:*:*:*:*:*:*:* | 3.3.1 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:3.3.2:*:*:*:*:*:*:* | 3.3.2 | Vulnerable | python-pillow |
- cpe:2.3:a:python:python:3.2.0:*:*:*:*:*:*:* Versions 3.2.0 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:3.2.1:*:*:*:*:*:*:* Versions 3.2.1 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:3.2.2:*:*:*:*:*:*:* Versions 3.2.2 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:3.2.3:*:*:*:*:*:*:* Versions 3.2.3 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:3.2.4:*:*:*:*:*:*:* Versions 3.2.4 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:3.2.5:*:*:*:*:*:*:* Versions 3.2.5 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:3.2.6:*:*:*:*:*:*:* Versions 3.2.6 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:3.3.0:*:*:*:*:*:*:* Versions 3.3.0 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:3.3.1:*:*:*:*:*:*:* Versions 3.3.1 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:3.3.2:*:*:*:*:*:*:* Versions 3.3.2 Vulnerable ·python-pillow
Show 7 more CPE
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:python:python:3.3.3:*:*:*:*:*:*:* | 3.3.3 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:3.3.4:*:*:*:*:*:*:* | 3.3.4 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:3.3.5:*:*:*:*:*:*:* | 3.3.5 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:3.3.6:*:*:*:*:*:*:* | 3.3.6 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:3.4.0:*:*:*:*:*:*:* | 3.4.0 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:3.4.1:*:*:*:*:*:*:* | 3.4.1 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:3.4.2:*:*:*:*:*:*:* | 3.4.2 | Vulnerable | python-pillow |
- cpe:2.3:a:python:python:3.3.3:*:*:*:*:*:*:* Versions 3.3.3 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:3.3.4:*:*:*:*:*:*:* Versions 3.3.4 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:3.3.5:*:*:*:*:*:*:* Versions 3.3.5 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:3.3.6:*:*:*:*:*:*:* Versions 3.3.6 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:3.4.0:*:*:*:*:*:*:* Versions 3.4.0 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:3.4.1:*:*:*:*:*:*:* Versions 3.4.1 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:3.4.2:*:*:*:*:*:*:* Versions 3.4.2 Vulnerable ·python-pillow
Remediation
No fixed version listed by the sources yet.
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Software Collections | Affected | No fix planned: Will not fix |
Not affected: 4 products
- Red Hat Enterprise Linux 5
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
- Red Hat Software Collections
Timeline
- 2026-10-02 Threatist record created from CVE-2014-2667
- 2026-10-03 Alias added: GHSA-gqp4-ww82-42w3
References
Advisory 5
More python-pillow Python vulnerabilities
- TI-2016-01993 The DES and Triple DES ciphers, as used in the TLS, SSH, and IPSec protocols and other… CVSS 3.1HIGH 7.5
- TI-2022-24108 An XML External Entity (XXE) issue was discovered in Python through 3.9.1. CVSS 3.1CRITICAL 9.8
- TI-2022-17508 The Keccak XKCP SHA-3 reference implementation before fdc6fef has an integer overflow and… CVSS 3.1CRITICAL 9.8
- TI-2021-02254 Python 3.x through 3.9.1 has a buffer overflow in PyCArg_repr in _ctypes/callproc.c… CVSS 3.1CRITICAL 9.8
- TI-2007-04413 Directory traversal vulnerability in the (1) extract and (2) extractall functions in the… CVSS 3.1CRITICAL 9.8
- TI-2014-00217 OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly… CVSS 3.1HIGH 7.4
Sources
- CVE-2014-2667 · CVE Program
- CVE-2014-2667 · NVD
- FIRST EPSS
- GHSA-gqp4-ww82-42w3 · GitHub Advisory Database · CC BY 4.0
- CVE-2014-2667 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences