Bug 2547344 - CVE-2026-12345 python3.12: python: Arbitrary file deletion via race condition during temporary directory cleanup [fedora-all]
Summary: CVE-2026-12345 python3.12: python: Arbitrary file deletion via race condition...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: python3.12
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:52 UTC by Srikanth Balasubramanian
Modified: 2026-11-08 17:09 UTC (History)
6 users (show)

Fixed In Version: python3.12-3.12.16-1.fc44 python3.12-3.12.16-2.fc43 python3.12-3.12.16-2.fc45
Clone Of:
Environment:
Last Closed: 2026-10-28 02:28:28 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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.

Comment 8 Fedora Update System 2026-10-31 02:43:17 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 9 Fedora Update System 2026-10-31 05:12:49 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 10 Fedora Update System 2026-11-08 01:06:59 UTC
FEDORA-2026-4e3279af04 (python3.12-3.12.16-2.fc43) has been pushed to the Fedora 43 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 11 Fedora Update System 2026-11-08 01:31:41 UTC
FEDORA-2026-5f99243da4 (python3.12-3.12.16-2.fc45) has been pushed to the Fedora 45 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 12 Fedora Update System 2026-11-08 17:08:49 UTC
FEDORA-2026-4e3279af04 (python3.12-3.12.16-2.fc43) has been pushed to the Fedora 43 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 13 Fedora Update System 2026-11-08 17:09:35 UTC
FEDORA-2026-5f99243da4 (python3.12-3.12.16-2.fc45) has been pushed to the Fedora 45 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.