There is a MEDIUM severity vulnerability affecting CPython.

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.

Please see the linked CVE ID for the latest information on affected
versions:

* https://www.cve.org/CVERecord?id=CVE-2026-12345
* https://github.com/python/cpython/pull/157580
_______________________________________________
Security-announce mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/security-announce.python.org
Member address: [email protected]

Reply via email to