You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Race condition in the cleanup of tempfile.TemporaryDirectory #157579
When working around file system permission errors, files are removed after resolving their path again, this means that by replacing a directory of the tree with a symbolic link, an attacker can make the cleanup delete files outside of the temporary directory.
Activity
gh-157579: Fix race condition in the cleanup of `tempfile.TemporaryDi…
[3.12] gh-157579: Fix race condition in the cleanup of tempfile.Tempo…
[3.12] GH-157579: Revert GH-158489 (prematurely merged) (#158528)
hugovk commentedon Sep 30, 2026
TODO:
[3.15] gh-157579: Fix race condition in the cleanup of `tempfile.Temp…
3 remaining items
[3.14] gh-157579: Fix race condition in the cleanup of `tempfile.Temp…
[3.13] gh-157579: Fix race condition in the cleanup of `tempfile.Temp…
[3.12] gh-157579: Fix race condition in the cleanup of `tempfile.Temp…
[3.10] pythongh-157579: Fix race condition in the cleanup of tempfile…
Update version to 3.10.22.2 and add release notes
[3.9] pythongh-157579: Fix race condition in the cleanup of tempfile.…
Update version to 3.9.25.2 and add release notes
00495: pythongh-157579: Fix race condition in the cleanup of `tempfil…
gh-157579: Fix TemporaryDirectory cleanup fallbacks with bytes paths (G…
[3.15] gh-157579: Fix TemporaryDirectory cleanup fallbacks with bytes…
[3.14] gh-157579: Fix TemporaryDirectory cleanup fallbacks with bytes…
[3.13] gh-157579: Fix TemporaryDirectory cleanup fallbacks with bytes…