PT-2026-162186
Published
2026-11-19
·
Updated
2026-11-19
Description by
CVSS 3.1
6.3
MediumMetricsAV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:H
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.
Exploitability
Fix
Vendors
Affected products
Related identifiers
Found an issue in the description? Have something to add? Feel free to write us 👾