CVE-2026-12345

Published: September 30, 2026Last modified: October 15, 2026

Description

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.

Status

ProductReleasePackageStatus
Alpaquita Linux23 LTSpython3Unknown (3.11.3-r0)
25 LTSpython3Fixed (3.12.15-r1)
Streampython3Fixed (3.14.8-r4)
Hardened Containers23 LTSpython3Unknown (3.11.3-r0)
25 LTSpython3Fixed (3.12.15-r1)
Streampython3Fixed (3.14.8-r4)

References

ON THIS PAGE