CVE-2026-12345
Race condition in tempfile.TemporaryDirectory cleanup allows deleting files outside the temporary directory
02 Description
Race condition in tempfile.TemporaryDirectory cleanup allows deleting files outside the temporary directory
03 Exploitation and scoring
- Exploitation
- Assessed, none found. CISA's assessment recorded neither public exploit code nor evidence of exploitation when it was made.
- SSVC decision
- ExploitationnoneCISA recorded no public exploit code and no evidence of exploitation.
- AutomatablenoAt least one step from reconnaissance to exploitation cannot be reliably automated.
- Technical ImpactpartialSuccessful exploitation gives limited control of the vulnerable component.
- EPSS probability
- 0.34% probability of exploitation activity in the next 30 days.
- EPSS percentile
- Equal to or higher than the score of 27.6% of scored records. A rank, not a probability.
- NVD base score
- 5.9 (CVSS v4.0), scored by the NVD independently of the CNA.
- NVD CVSS vector
- CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
- NVD analysis status
- Awaiting Analysis. NVD last modified this record on 2026-10-26.
- Red Hat severity
- Moderate. Red Hat's rating for its own products, not a CVSS rating.
Exploit-prediction scores from FIRST. Independent scoring and analysis status from the NVD. Vendor severity from Red Hat. Exploitation assessment and catalog membership from CISA.
04 Metadata
- Published
- 2026-09-29 17:46Z29 DAYS AGO
- Last updated
- 2026-10-26 00:36Z3 DAYS AGO
- Reserved
- 2026-06-15
- Assigning CNA
- PSF
- Record state
- PUBLISHED
- Severity
- Medium (CVSS 5.9)
- CNA CVSS vector
- CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N
- Weaknesses
- CWE-59Improper Link Resolution Before File Access ('Link Following')Base
- Data version
- 5.2
- Document digest
- 89ff5aafee78c883dabb430e3499df0958270512b9d915e529ed8a4612ebbf96
05 Affected products
06 References
- github.comhttps://github.com/python/cpython/pull/157580
- github.comhttps://github.com/python/cpython/issues/157579
- github.comhttps://github.com/python/cpython/commit/5c20517a4fc56683efe63a7751020db9573f538d
- github.comhttps://github.com/python/cpython/commit/458e7134a5af7f86aee9d21b51cf499b41aa4420
- github.comhttps://github.com/python/cpython/commit/e1f3590f155c6d66007e958c98c9d69316551993
- github.comhttps://github.com/python/cpython/commit/06ef3d43fdaf4da97af12fa694b4886092c4b970
- github.comhttps://github.com/python/cpython/commit/58ed0259cae509a19138795df302fe60b544dc74
- github.comhttps://github.com/python/cpython/commit/0478b52788117db4b831b3efd648f56b777628aa
- github.comhttps://github.com/python/cpython/commit/c39b52d00b42200aaadff679e2fe3f1006d57c58
- www.openwall.comhttp://www.openwall.com/lists/oss-security/2026/09/29/40
07 Fixed in
AlmaLinux 8
- platform-python Fixed in 3.6.8-79.el8_10.alma.1
- platform-python-debug Fixed in 3.6.8-79.el8_10.alma.1
- platform-python-devel Fixed in 3.6.8-79.el8_10.alma.1
- python3-idle Fixed in 3.6.8-79.el8_10.alma.1
- python3-libs Fixed in 3.6.8-79.el8_10.alma.1
- python3-test Fixed in 3.6.8-79.el8_10.alma.1
- python3-tkinter Fixed in 3.6.8-79.el8_10.alma.1
Source: AlmaLinux, AlmaLinux OS. Copyright (c) 2023 AlmaLinux OS. Licensed under MIT License. Received through OSV.dev. Reformatted by exploit.cc.
AlmaLinux 9
- python-unversioned-command Fixed in 3.9.25-7.el9_8.6
- python3 Fixed in 3.9.25-7.el9_8.6
- python3-debug Fixed in 3.9.25-7.el9_8.6
- python3-devel Fixed in 3.9.25-7.el9_8.6
- python3-idle Fixed in 3.9.25-7.el9_8.6
- python3-libs Fixed in 3.9.25-7.el9_8.6
- python3-test Fixed in 3.9.25-7.el9_8.6
- python3-tkinter Fixed in 3.9.25-7.el9_8.6
Source: AlmaLinux, AlmaLinux OS. Copyright (c) 2023 AlmaLinux OS. Licensed under MIT License. Received through OSV.dev. Reformatted by exploit.cc.
CloudLinux 8
- platform-python Fixed in 3.6.8-79.el8_10.alma.1
- platform-python-debug Fixed in 3.6.8-79.el8_10.alma.1
- platform-python-devel Fixed in 3.6.8-79.el8_10.alma.1
- python3-idle Fixed in 3.6.8-79.el8_10.alma.1
- python3-libs Fixed in 3.6.8-79.el8_10.alma.1
- python3-test Fixed in 3.6.8-79.el8_10.alma.1
- python3-tkinter Fixed in 3.6.8-79.el8_10.alma.1
Derived from AlmaLinux 8. Partial coverage: only packages taken from AlmaLinux 8 are listed.
Source: CloudLinux errata, CloudLinux Inc. Derived from: AlmaLinux, AlmaLinux OS. Copyright (c) 2023 AlmaLinux OS. Licensed under MIT License. Received through OSV.dev. Reformatted by exploit.cc.
CloudLinux 9
- python-unversioned-command Fixed in 3.9.25-7.el9_8.6
- python3 Fixed in 3.9.25-7.el9_8.6
- python3-debug Fixed in 3.9.25-7.el9_8.6
- python3-devel Fixed in 3.9.25-7.el9_8.6
- python3-idle Fixed in 3.9.25-7.el9_8.6
- python3-libs Fixed in 3.9.25-7.el9_8.6
- python3-test Fixed in 3.9.25-7.el9_8.6
- python3-tkinter Fixed in 3.9.25-7.el9_8.6
Derived from AlmaLinux 9. Partial coverage: only packages taken from AlmaLinux 9 are listed.
Source: CloudLinux errata, CloudLinux Inc. Derived from: AlmaLinux, AlmaLinux OS. Copyright (c) 2023 AlmaLinux OS. Licensed under MIT License. Received through OSV.dev. Reformatted by exploit.cc.
Debian 12
- pypy3 No fix yet
- python3.11 No fix yet
Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.
Debian 13
- pypy3 No fix yet
- python3.13 No fix yet
Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.
Debian 14
- pypy3 No fix yet
- python3.13 No fix yet
- python3.14 No fix yet
- python3.15 Fixed in 3.15.0~rc3-1
Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu 22.04 LTS
- python3.10 No fix yet
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu 24.04 LTS
- python3.12 No fix yet
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu 26.04 LTS
- python3.14 No fix yet
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu 26.10
- python3.14 No fix yet
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu Pro 14.04 LTS
- python2.7 No fix yet
- python3.4 No fix yet
- python3.5 No fix yet
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu Pro 16.04 LTS
- python2.7 No fix yet
- python3.5 No fix yet
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu Pro 18.04 LTS
- python2.7 No fix yet
- python3.6 No fix yet
- python3.7 No fix yet
- python3.8 No fix yet
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu Pro 20.04 LTS
- python2.7 No fix yet
- python3.8 No fix yet
- python3.9 No fix yet
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu Pro 22.04 LTS
- python2.7 No fix yet
- python3.11 No fix yet
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
A release or ecosystem missing from this list has no record here. It may be unaffected or not covered by the source. Source notices and licences.