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: 2547342 2547345 2547346 2547349 2547351 2547352 2547353 2547343 2547344 2547347 2547348 2547350
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-09-29 18:37 UTC by OSIDB Bzimport
Modified: 2026-11-11 12:06 UTC (History)
23 users (show)

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


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2026:89763 0 None None None 2026-10-26 02:05:13 UTC
Red Hat Product Errata RHBA-2026:90787 0 None None None 2026-10-27 08:29:35 UTC
Red Hat Product Errata RHBA-2026:92358 0 None None None 2026-10-29 11:46:33 UTC
Red Hat Product Errata RHBA-2026:92364 0 None None None 2026-10-29 12:07:35 UTC
Red Hat Product Errata RHBA-2026:94080 0 None None None 2026-11-02 21:42:26 UTC
Red Hat Product Errata RHSA-2026:85239 0 None None None 2026-10-19 16:29:59 UTC
Red Hat Product Errata RHSA-2026:89742 0 None None None 2026-10-26 04:25:34 UTC
Red Hat Product Errata RHSA-2026:98511 0 None None None 2026-11-11 12:06:42 UTC
Red Hat Product Errata RHSA-2026:98615 0 None None None 2026-11-11 11:38:34 UTC

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.

Comment 1 Jon Orris 2026-10-19 16:29:58 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2026:85239 https://access.redhat.com/errata/RHSA-2026:85239

Comment 2 Jon Orris 2026-10-26 04:25:32 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2026:89742 https://access.redhat.com/errata/RHSA-2026:89742

Comment 4 errata-xmlrpc 2026-11-11 11:38:32 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 10

Via RHSA-2026:98615 https://access.redhat.com/errata/RHSA-2026:98615

Comment 5 errata-xmlrpc 2026-11-11 12:06:40 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2026:98511 https://access.redhat.com/errata/RHSA-2026:98511


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