Race condition In python3
Description
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.
Mitigation
Update Impact
Minimal update. May introduce new vulnerabilities or breaking changes.
Ecosystem | Component | Affected version | Patched versions |
|---|---|---|---|
debian 13 | - | ||
debian 14 | - | ||
debian 12 | - | ||
rpm rhel7 | - | - | |
rpm rhel7 | - | - | |
rpm rhel8 | 0:3.6.8-79.el8_10 | ||
rpm rhel8 | - | - | |
rpm rhel9 | - | - | |
rpm rhel9 | - | - | |
rpm rhel8 | - | - |
1-10 of 24
10
Aliases
References