Vulnerability
CVE-2026-12345
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.
49 advisories report this vulnerability, across 15 ecosystems.
Advisories
-
ALAS2023-2026-3406
Amazon Linux 2023 - ALAS2023-2026-3406: Medium priority package update for python3.14
-
ALAS2023-2026-3407
Amazon Linux 2023 - ALAS2023-2026-3407: Medium priority package update for python3.13
-
ALAS2023-2026-3408
Amazon Linux 2023 - ALAS2023-2026-3408: Medium priority package update for python3.12
-
ALPINE-CVE-2026-12345
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…
- ALPINE-EDGE-CVE-2026-12345
-
ALSA-2026:85239
Important: python3 security update
-
ALSA-2026:89742
Important: python3.9 security update
-
ALSA-2026:98615
Moderate: python3.12 security, bug fix, and enhancement update
-
AZL-105684
CVE-2026-12345 affecting package python3 for versions less than 3.12.16-1
-
AZL-105912
CVE-2026-12345 affecting package tensorflow 2.16.1-11
- CGA-2w26-qvh7-3jhg
- CGA-3ghx-j4h4-2hj2
- CGA-5hh2-cq82-m3hc
- CGA-6p3c-479h-x32j
- CGA-856h-m5xq-m9xq
- CGA-g73w-6cxg-73cx
- CGA-m48m-44w3-h42c
- CGA-mc6m-j8hf-7329
- CGA-mp3h-w2rr-vq2f
- CGA-qq2w-53jr-v29w
- CGA-qx8x-26cc-44gv
- CGA-x8vg-p55m-fr9h
-
CNA-CVE-2026-12345
Race condition in tempfile.TemporaryDirectory cleanup allows deleting files outside the temporary directory
-
DEBIAN-CVE-2026-12345
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…
-
ELSA-2026-85239
ELSA-2026-85239: python3 security update (IMPORTANT)
-
ELSA-2026-89742
ELSA-2026-89742: python3.9 security update (IMPORTANT)
-
ELSA-2026-98511
ELSA-2026-98511: python3.9 security update (MODERATE)
-
FEDORA-2026-1520dedf55
python3-docs-3.14.10-1.fc43 python3.14-3.14.10-1.fc43
-
FEDORA-2026-2a34d74310
python3-docs-3.14.10-1.fc44 python3.14-3.14.10-1.fc44
-
FEDORA-2026-4e3279af04
python3.12-3.12.16-2.fc43
-
FEDORA-2026-5a90f8090a
python3.6-3.6.15-60.fc44
-
FEDORA-2026-848bbd442b
python3.6-3.6.15-60.fc43
-
FEDORA-2026-a85529a028
python3.13-3.13.18-1.fc44
-
FEDORA-2026-d6b8383232
python3.13-3.13.18-1.fc43
-
RHSA-2026:74870
Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update
-
RHSA-2026:74922
Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update
-
RHSA-2026:75119
Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update
-
RHSA-2026:85239
Red Hat Security Advisory: python3 security update
-
RHSA-2026:89742
Red Hat Security Advisory: python3.9 security update
-
RHSA-2026:98511
Red Hat Security Advisory: python3.9 security update
-
RHSA-2026:98615
Red Hat Security Advisory: python3.12 security, bug fix, and enhancement update
-
RHVEX-CVE-2026-12345
python: python: Arbitrary file deletion via race condition during temporary directory cleanup
-
RLSA-2026:85239
Important: python3 security update
-
RLSA-2026:89742
Important: python3.9 security update
-
RLSA-2026:98615
Moderate: python3.12 security, bug fix, and enhancement update
-
SUSE-SU-2026:5251-1
Security update for python3
-
SUSEVEX-CVE-2026-12345
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…
-
UBUNTU-CVE-2026-12345
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…
-
openSUSE-SU-2026:12125-1
python315-3.15.0-1.1 on GA media
References
- https://github.com/python/cpython/commit/0478b52788117db4b831b3efd648f56b777628aa
- https://github.com/python/cpython/commit/06ef3d43fdaf4da97af12fa694b4886092c4b970
- https://github.com/python/cpython/commit/458e7134a5af7f86aee9d21b51cf499b41aa4420
- https://github.com/python/cpython/commit/58ed0259cae509a19138795df302fe60b544dc74
- https://github.com/python/cpython/commit/5c20517a4fc56683efe63a7751020db9573f538d
- https://github.com/python/cpython/commit/aa17c688d2c160969f2c8963f4454cdd139808e7
- https://github.com/python/cpython/commit/c39b52d00b42200aaadff679e2fe3f1006d57c58
- https://github.com/python/cpython/commit/e1f3590f155c6d66007e958c98c9d69316551993
- https://github.com/python/cpython/issues/157579
- https://github.com/python/cpython/pull/157580
- http://www.openwall.com/lists/oss-security/2026/09/29/40