Bug 2547348 - CVE-2026-12345 python3.15: python: Arbitrary file deletion via race condition during temporary directory cleanup [fedora-all]
Summary: CVE-2026-12345 python3.15: python: Arbitrary file deletion via race condition...
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: python3.15
Version: rawhide
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
Assignee: Python Maintainers
QA Contact:
URL:
Whiteboard: {"flaws": ["8b422260-3538-47b9-a268-0...
Depends On:
Blocks: CVE-2026-12345
TreeView+ depends on / blocked
 
Reported: 2026-10-07 09:53 UTC by Srikanth Balasubramanian
Modified: 2026-10-07 09:53 UTC (History)
4 users (show)

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


Attachments (Terms of Use)

Description Srikanth Balasubramanian 2026-10-07 09:53:06 UTC
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.

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.