[ CVE-2026-12345 · Published 29 Sep 2026 ]

Vulnerability in Python Software Foundation CPython

CVSS 5.9 EPSS <1%2 agency advisoriesFix available

[ Description ]Official 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.

[ Fixes ]Fixes and patches

  • Security bulletin: Python PSF-2026-42Vendor patch or bulletin · CERT-FR · raw.githubusercontent.com/psf/advisory-database/main/advisories/python, cited by CERT-FR CERTFR-2026-AVI-1239

[ Advisories ]Government CERT advisories