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.
CVSS Details
- CVSS 4.0 Base Score: 5.9 (MEDIUM)
- CVSS 4.0 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)
Covered by Rapid7
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Alma_linux | — | Upgrade platform-pythonUpgrade platform-python-debugUpgrade platform-python-develUpgrade python-unversioned-commandUpgrade python3Upgrade python3-debugUpgrade python3-develUpgrade python3-idleUpgrade python3-libsUpgrade python3-testUpgrade python3-tkinter | Oct 21, 2026 | Oct 19, 2026 |
| Alpine Linux | — | Upgrade python3 | Oct 28, 2026 | Sep 29, 2026 |
| Amazon_linux_2023 | — | Upgrade python3.12Upgrade python3.12-debugUpgrade python3.12-debuginfoUpgrade python3.12-debugsourceUpgrade python3.12-develUpgrade python3.12-idleUpgrade python3.12-libsUpgrade python3.12-testUpgrade python3.12-tkinterUpgrade python3.13Upgrade python3.13-debugUpgrade python3.13-debuginfoUpgrade python3.13-debugsourceUpgrade python3.13-develUpgrade python3.13-freethreadingUpgrade python3.13-freethreading-debugUpgrade python3.13-idleUpgrade python3.13-libsUpgrade python3.13-testUpgrade python3.13-tkinterUpgrade python3.14Upgrade python3.14-debugUpgrade python3.14-debuginfoUpgrade python3.14-debugsourceUpgrade python3.14-develUpgrade python3.14-freethreadingUpgrade python3.14-freethreading-debugUpgrade python3.14-freethreading-develUpgrade python3.14-freethreading-idleUpgrade python3.14-freethreading-libsUpgrade python3.14-freethreading-testUpgrade python3.14-freethreading-tkinterUpgrade python3.14-idleUpgrade python3.14-libsUpgrade python3.14-testUpgrade python3.14-tkinter | Nov 13, 2026 | Sep 29, 2026 |
| Echo Linux | — | Upgrade python3.13 | Nov 12, 2026 | Sep 29, 2026 |
| Oracle_linux | — | Upgrade platform-pythonUpgrade platform-python-debugUpgrade platform-python-develUpgrade python-unversioned-commandUpgrade python3Upgrade python3-debugUpgrade python3-develUpgrade python3-idleUpgrade python3-libsUpgrade python3-testUpgrade python3-tkinter | Oct 22, 2026 | Sep 29, 2026 |
| Redhat_linux | — | No solution existsUpgrade platform-pythonUpgrade platform-python-debugUpgrade platform-python-develUpgrade python-unversioned-commandUpgrade python3Upgrade python3-debugUpgrade python3-debuginfoUpgrade python3-debugsourceUpgrade python3-develUpgrade python3-idleUpgrade python3-libsUpgrade python3-testUpgrade python3-tkinterUpgrade python3.12-debuginfoUpgrade python3.12-debugsourceUpgrade python3.9-debuginfoUpgrade python3.9-debugsource | Oct 1, 2026 | Sep 29, 2026 |
| Rocky_linux | — | Upgrade platform-pythonUpgrade platform-python-debugUpgrade platform-python-develUpgrade python3Upgrade python3-debugUpgrade python3-debuginfoUpgrade python3-debugsourceUpgrade python3-develUpgrade python3-idleUpgrade python3-libsUpgrade python3-testUpgrade python3-tkinterUpgrade python3.9-debuginfoUpgrade python3.9-debugsource | Oct 23, 2026 | Oct 21, 2026 |
Prioritize with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub