[3.11] gh-146581: Fix vulnerability in shutil.unpack_archive() for ZIP files on Windows (GH-146591) by serhiy-storchaka · Pull Request #149071 · python/cpython
-
-
Notifications
You must be signed in to change notification settings - Fork 34.8k
Open
Open
Conversation
Member
Use ZipFile.extractall() to sanitize file names and extract files.
Files with invalid names (e.g. absolute paths) are now skipped.
Files containing ".." in the name are no longer skipped.
(cherry picked from commit fc829e8)
… files on Windows (pythonGH-146591) Use ZipFile.extractall() to sanitize file names and extract files. Files with invalid names (e.g. absolute paths) are now skipped. Files containing ".." in the name are no longer skipped. (cherry picked from commit fc829e8)
bedevere-app
Bot
mentioned this pull request
bedevere-app
Bot
added
the
awaiting core review
label
bedevere-app
Bot
mentioned this pull request
serhiy-storchaka
commented
May 19, 2026
serhiy-storchaka commented
Member Author
Ping. Merging this PR is needed for backport to 3.10.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment