Bug 2547344

Summary: CVE-2026-12345 python3.12: python: Arbitrary file deletion via race condition during temporary directory cleanup [fedora-all]
Product: [Fedora] Fedora Reporter: Srikanth Balasubramanian <sbalasub>
Component: python3.12Assignee: Python Maintainers <python-maint>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: cstratak, mhroncok, python-maint, python-packagers-sig, thrnciar, vstinner
Target Milestone: ---Keywords: Security, SecurityTracking
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: {"flaws": ["8b422260-3538-47b9-a268-0d2b59a7fbf4"]}
Fixed In Version: python3.12-3.12.16-1.fc44 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2026-10-28 02:28:28 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2543492    

Description Srikanth Balasubramanian 2026-10-07 09:52:20 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.

Comment 1 Fedora Update System 2026-10-26 18:22:32 UTC
FEDORA-2026-e102eccf7f (python3.12-3.12.16-1.fc44) has been submitted as an update to Fedora 44.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-e102eccf7f

Comment 2 Fedora Update System 2026-10-26 18:23:08 UTC
FEDORA-2026-5f99243da4 (python3.12-3.12.16-1.fc45) has been submitted as an update to Fedora 45.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-5f99243da4

Comment 3 Fedora Update System 2026-10-26 18:23:33 UTC
FEDORA-2026-4e3279af04 (python3.12-3.12.16-1.fc43) has been submitted as an update to Fedora 43.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-4e3279af04

Comment 4 Fedora Update System 2026-10-27 01:57:38 UTC
FEDORA-2026-e102eccf7f has been pushed to the Fedora 44 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-e102eccf7f`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-e102eccf7f

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Fedora Update System 2026-10-27 02:15:45 UTC
FEDORA-2026-5f99243da4 has been pushed to the Fedora 45 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-5f99243da4`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-5f99243da4

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 6 Fedora Update System 2026-10-27 02:49:14 UTC
FEDORA-2026-4e3279af04 has been pushed to the Fedora 43 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-4e3279af04`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-4e3279af04

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 7 Fedora Update System 2026-10-28 02:28:28 UTC
FEDORA-2026-e102eccf7f (python3.12-3.12.16-1.fc44) has been pushed to the Fedora 44 stable repository.
If problem still persists, please make note of it in this bug report.