Fedora Account System
Red Hat Associate
Red Hat Customer
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.
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
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
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
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