Bug 2547350 - CVE-2026-12345 python3.13: python: Arbitrary file deletion via race condition during temporary directory cleanup [fedora-all]
Summary: CVE-2026-12345 python3.13: python: Arbitrary file deletion via race condition...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: python3.13
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-11-05 01:45 UTC (History)
4 users (show)

Fixed In Version: python3.13-3.13.18-1.fc45 python3.13-3.13.18-1.fc44 python3.13-3.13.18-1.fc43
Clone Of:
Environment:
Last Closed: 2026-11-05 01:01:53 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Srikanth Balasubramanian 2026-10-07 09:53:26 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-27 12:35:41 UTC
FEDORA-2026-a85529a028 (python3.13-3.13.18-1.fc44) has been submitted as an update to Fedora 44.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-a85529a028

Comment 2 Fedora Update System 2026-10-27 12:36:48 UTC
FEDORA-2026-77153b01c6 (python3.13-3.13.18-1.fc45) has been submitted as an update to Fedora 45.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-77153b01c6

Comment 3 Fedora Update System 2026-10-27 12:37:16 UTC
FEDORA-2026-d6b8383232 (python3.13-3.13.18-1.fc43) has been submitted as an update to Fedora 43.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-d6b8383232

Comment 4 Fedora Update System 2026-10-28 03:19:19 UTC
FEDORA-2026-d6b8383232 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-d6b8383232`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-d6b8383232

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

Comment 5 Fedora Update System 2026-10-28 03:46:14 UTC
FEDORA-2026-77153b01c6 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-77153b01c6`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-77153b01c6

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

Comment 6 Fedora Update System 2026-10-28 04:02:27 UTC
FEDORA-2026-a85529a028 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-a85529a028`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-a85529a028

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

Comment 7 Fedora Update System 2026-11-05 01:01:53 UTC
FEDORA-2026-77153b01c6 (python3.13-3.13.18-1.fc45) has been pushed to the Fedora 45 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 8 Fedora Update System 2026-11-05 01:25:47 UTC
FEDORA-2026-a85529a028 (python3.13-3.13.18-1.fc44) has been pushed to the Fedora 44 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 9 Fedora Update System 2026-11-05 01:45:37 UTC
FEDORA-2026-d6b8383232 (python3.13-3.13.18-1.fc43) has been pushed to the Fedora 43 stable repository.
If problem still persists, please make note of it in this bug report.


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