CVE-2026-12345

Public on 2026-09-29
Modified on 2026-10-01
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.
Severity
Medium severity
Medium
See what this means
CVSS v3 Base Score
6.3
See breakdown

Affected Packages

Platform Package Release Date Advisory Status
Amazon Linux 2 - Core python Not Affected
Amazon Linux 2 - Core python3 Pending Fix
Amazon Linux 2023 python3.11 Pending Fix
Amazon Linux 2023 python3.12 Pending Fix
Amazon Linux 2023 python3.13 Pending Fix
Amazon Linux 2023 python3.14 Pending Fix
Amazon Linux 2027 Preview python3.14 Pending Fix
Amazon Linux 2023 python3.9 Pending Fix

CVSS Scores

Score Type Score Vector
Amazon Linux CVSSv3 6.3 CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:H