Bug 2543492 (CVE-2026-12345) - CVE-2026-12345 python: python: Arbitrary file deletion via race condition during temporary directory cleanup
Summary: CVE-2026-12345 python: python: Arbitrary file deletion via race condition dur...
Keywords:
Status: NEW
Alias: CVE-2026-12345
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-09-29 18:37 UTC by OSIDB Bzimport
Modified: 2026-09-29 19:00 UTC (History)
24 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-09-29 18:37:57 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.