ADVISORIES

Debian Security Tracker

DEBIAN-CVE-2026-12345

Details

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.

Affected packages

EcosystemPackageAffected versions
Debian:12pypy3
All versions, no fix listed
Debian:13pypy3
All versions, no fix listed
Debian:14pypy3
All versions, no fix listed
Debian:12python3.11
All versions, no fix listed
Debian:13python3.13
All versions, no fix listed
Debian:14python3.14
All versions before 3.14.9-1 (fixed in 3.14.9-1)
Debian:14python3.15
All versions before 3.15.0~rc3-1 (fixed in 3.15.0~rc3-1)

References