CVE-2026-12345
Fixed in a distro release EPSS <1%CVSS 5.9
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.
Products: Python Software Foundation CPython
Distro releases
| Release | Package | Fixed in |
|---|---|---|
| AlmaLinux 8 | platform-python | 3.6.8-79.el8_10.alma.1 |
| AlmaLinux 8 | platform-python-debug | 3.6.8-79.el8_10.alma.1 |
| AlmaLinux 8 | platform-python-devel | 3.6.8-79.el8_10.alma.1 |
| AlmaLinux 8 | python3-idle | 3.6.8-79.el8_10.alma.1 |
| AlmaLinux 8 | python3-libs | 3.6.8-79.el8_10.alma.1 |
| AlmaLinux 8 | python3-test | 3.6.8-79.el8_10.alma.1 |
| AlmaLinux 8 | python3-tkinter | 3.6.8-79.el8_10.alma.1 |
| Chainguard | python-3.10 | no fix |
| Chainguard | python-3.11 | no fix |
| Chainguard | python-3.12 | no fix |
| Chainguard | python-3.13 | no fix |
| Chainguard | python-3.14 | no fix |
| Chainguard | python-3.14 | 3.14.8_git20261014-r0 |
| Chainguard | python-3.15 | 0 |
| Debian 12 | pypy3 | no fix |
| Debian 12 | python3.11 | no fix |
| Debian 13 | pypy3 | no fix |
| Debian 13 | python3.13 | no fix |
| Debian 14 | pypy3 | no fix |
| Debian 14 | python3.13 | no fix |
| Debian 14 | python3.14 | no fix |
| Debian 14 | python3.15 | 3.15.0~rc3-1 |
| Red Hat Enterprise Linux 8 | platform-python | 0:3.6.8-79.el8_10 |
| Red Hat Enterprise Linux 8 | platform-python-debug | 0:3.6.8-79.el8_10 |
| Red Hat Enterprise Linux 8 | platform-python-devel | 0:3.6.8-79.el8_10 |
| Red Hat Enterprise Linux 8 | python3 | 0:3.6.8-79.el8_10 |
| Red Hat Enterprise Linux 8 | python3-debuginfo | 0:3.6.8-79.el8_10 |
| Red Hat Enterprise Linux 8 | python3-debugsource | 0:3.6.8-79.el8_10 |
| Red Hat Enterprise Linux 8 | python3-idle | 0:3.6.8-79.el8_10 |
| Red Hat Enterprise Linux 8 | python3-libs | 0:3.6.8-79.el8_10 |
| Red Hat Enterprise Linux 8 | python3-test | 0:3.6.8-79.el8_10 |
| Red Hat Enterprise Linux 8 | python3-tkinter | 0:3.6.8-79.el8_10 |
| Red Hat hummingbird 1 | python-unversioned-command | 0:3.14.8-1.hum1 |
| Red Hat hummingbird 1 | python3 | 0:3.14.8-1.hum1 |
| Red Hat hummingbird 1 | python3-debug | 0:3.14.8-1.hum1 |
| Red Hat hummingbird 1 | python3-devel | 0:3.14.8-1.hum1 |
| Red Hat hummingbird 1 | python3-idle | 0:3.14.8-1.hum1 |
| Red Hat hummingbird 1 | python3-libs | 0:3.14.8-1.hum1 |
| Red Hat hummingbird 1 | python3-test | 0:3.14.8-1.hum1 |
| Red Hat hummingbird 1 | python3-tkinter | 0:3.14.8-1.hum1 |
| Red Hat hummingbird 1 | python3.12 | 0:3.12.15-1.hum1 |
| Red Hat hummingbird 1 | python3.12-debug | 0:3.12.15-1.hum1 |
| Red Hat hummingbird 1 | python3.12-devel | 0:3.12.15-1.hum1 |
| Red Hat hummingbird 1 | python3.12-idle | 0:3.12.15-1.hum1 |
| Red Hat hummingbird 1 | python3.12-libs | 0:3.12.15-1.hum1 |
| Red Hat hummingbird 1 | python3.12-test | 0:3.12.15-1.hum1 |
| Red Hat hummingbird 1 | python3.12-tkinter | 0:3.12.15-1.hum1 |
| Red Hat hummingbird 1 | python3.13 | 0:3.13.16-1.hum1 |
| Red Hat hummingbird 1 | python3.13-debug | 0:3.13.16-1.hum1 |
| Red Hat hummingbird 1 | python3.13-devel | 0:3.13.16-1.hum1 |
| Red Hat hummingbird 1 | python3.13-freethreading | 0:3.13.16-1.hum1 |
| Red Hat hummingbird 1 | python3.13-freethreading-debug | 0:3.13.16-1.hum1 |
| Red Hat hummingbird 1 | python3.13-idle | 0:3.13.16-1.hum1 |
| Red Hat hummingbird 1 | python3.13-libs | 0:3.13.16-1.hum1 |
| Red Hat hummingbird 1 | python3.13-test | 0:3.13.16-1.hum1 |
| Red Hat hummingbird 1 | python3.13-tkinter | 0:3.13.16-1.hum1 |
| Red Hat hummingbird 1 | python3.14 | 0:3.14.8-1.hum1 |
| Red Hat hummingbird 1 | python3.14-freethreading | 0:3.14.8-1.hum1 |
| Red Hat hummingbird 1 | python3.14-freethreading-debug | 0:3.14.8-1.hum1 |
| Red Hat hummingbird 1 | python3.14-freethreading-devel | 0:3.14.8-1.hum1 |
| Red Hat hummingbird 1 | python3.14-freethreading-idle | 0:3.14.8-1.hum1 |
| Red Hat hummingbird 1 | python3.14-freethreading-libs | 0:3.14.8-1.hum1 |
| Red Hat hummingbird 1 | python3.14-freethreading-test | 0:3.14.8-1.hum1 |
| Red Hat hummingbird 1 | python3.14-freethreading-tkinter | 0:3.14.8-1.hum1 |
| Rocky Linux 8 | python3 | 0:3.6.8-79.el8_10.rocky.0 |
| Ubuntu 22.04 LTS | python3.10 | no fix |
| Ubuntu 24.04 LTS | python3.12 | no fix |
| Ubuntu 26.04 LTS | python3.14 | no fix |
| Ubuntu 26.10 | python3.14 | no fix |
| Ubuntu Pro 14.04 LTS | python2.7 | no fix |
| Ubuntu Pro 14.04 LTS | python3.4 | no fix |
| Ubuntu Pro 14.04 LTS | python3.5 | no fix |
| Ubuntu Pro 16.04 LTS | python2.7 | no fix |
| Ubuntu Pro 16.04 LTS | python3.5 | no fix |
| Ubuntu Pro 18.04 LTS | python2.7 | no fix |
| Ubuntu Pro 18.04 LTS | python3.6 | no fix |
| Ubuntu Pro 18.04 LTS | python3.7 | no fix |
| Ubuntu Pro 18.04 LTS | python3.8 | no fix |
| Ubuntu Pro 20.04 LTS | python2.7 | no fix |
| Ubuntu Pro 20.04 LTS | python3.8 | no fix |
| Ubuntu Pro 20.04 LTS | python3.9 | no fix |
| Ubuntu Pro 22.04 LTS | python2.7 | no fix |
| Ubuntu Pro 22.04 LTS | python3.11 | no fix |
| Wolfi | python-3.10 | no fix |
| Wolfi | python-3.11 | no fix |
| Wolfi | python-3.12 | no fix |
| Wolfi | python-3.13 | no fix |
| Wolfi | python-3.14 | no fix |
| Wolfi | python-3.14 | 3.14.8_git20261014-r0 |
| Wolfi | python-3.15 | 0 |
| openSUSE Tumbleweed | python315 | 3.15.0-1.1 |