All CVEs / Python Software Foundation
CVE-2026-12345Python Software Foundation CPython
Medium 5.9
Follow: this CVE · Python Software Foundation · Python Software Foundation CPython We alert you by email or Slack (account required).
- Priority
- 35
- CVSS 4.0
- 5.9
- EPSS
- —
- Auth required
- Yes
- Published
- Sep 29, 2026
- Updated
- Dec 1, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-59
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- 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
What happens
The cleanup of tempfile.TemporaryDirectory is vulnerable to a race condition. An attacker who can modify the tree during cleanup can replace a directory with a symbolic link, causing files outside of the temporary directory to be deleted or have their permissions and file flags reset, with the privileges of the process performing the cleanup. Note that platforms where shutil.rmtree.avoids_symlink_attacks is false, remain affected, and file flags may still be reset outside of the tree on all platforms.
What to do
- Apply the vendor's security update for CPython.
Affected products
- Python Software Foundation · CPython
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official advisories
- Red Hat Security Advisory: python3.12 security, bug fix, and enhancement update · Red Hat · RHSA-2026:104720 · Dec 1, 2026 Medium
- Security update for python39 · SUSE · SUSE-SU-2026:5495-1 · Nov 27, 2026 Critical
- Security update for python3 · SUSE · SUSE-SU-2026:5251-1 · Nov 16, 2026 Critical
- Red Hat Security Advisory: python3.12 security, bug fix, and enhancement update · Red Hat · RHSA-2026:98615 · Nov 13, 2026 Medium
- Red Hat Security Advisory: python3.9 security update · Red Hat · RHSA-2026:98511 · Nov 13, 2026 Medium
- python315-3.15.0-1.1 on GA media · SUSE · openSUSE-SU-2026:12125-1 · Oct 13, 2026 Medium
Also: Red Hat (+5)
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.