[CVE-2026-7774] tarfile.data_filter path traversal bypass allows writing outside the extraction directory
June 4, 2026
2:12 p.m.
There is a MEDIUM severity vulnerability affecting CPython.
tarfile.data_filter could be bypassed using crafted link entries, including symlinks with empty or directory-like names, to redirect later archive members outside the intended extraction directory. This allowed a malicious tar archive to cause tarfile.extractall() to write files outside the destination directory, subject to the permissions of the extracting process.
Please see the linked CVE ID for the latest information on affected versions:
72
Age (days ago)
72
Last active (days ago)
0 comments
1 participants
participants (1)
-
Stan Ulbrych