๐Ÿ” CVE Alert

CVE-2026-12345

UNKNOWN 0.0

Race condition in tempfile.TemporaryDirectory cleanup allows deleting files outside the temporary directory

CVSS Score
0.0
EPSS Score
0.0%
EPSS Percentile
0th

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.

Vendor python software foundation
Product cpython
Published Sep 29, 2026
Last Updated Sep 29, 2026
Stay Ahead of the Next One

Get instant alerts for python software foundation cpython

Be the first to know when new unknown vulnerabilities affecting python software foundation cpython are published โ€” delivered to Slack, Telegram or Discord.

Get Free Alerts โ†’ Free ยท No credit card ยท 60 sec setup

Affected Versions

Python Software Foundation / CPython
0 < 3.15.0

References

NVD โ†— CVE.org โ†— EPSS Data โ†—
github.com: https://github.com/python/cpython/pull/157580 github.com: https://github.com/python/cpython/issues/157579 github.com: https://github.com/python/cpython/commit/5c20517a4fc56683efe63a7751020db9573f538d

Credits

๐Ÿ” Bitshift (https://github.com/TheShiftedBit) Stan Ulbrych (https://github.com/StanFromIreland) Petr Viktorin (https://github.com/encukou)