tarfile.tar_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() with filter="tar" to write files outside the destination directory, subject to the permissions of the extracting process.
This is the tarfile.tar_filter counterpart of CVE-2026-7774, which covered tarfile.data_filter.
3.11.183.12.163.13.183.14.103.15.23.11.183.12.163.13.183.14.103.15.23.11.183.12.163.13.183.14.103.15.23.11.183.12.163.13.183.14.103.15.23.11.183.12.163.13.183.14.103.15.23.11.183.12.163.13.183.14.103.15.23.11.183.12.163.13.183.14.103.15.23.11.183.12.163.13.183.14.103.15.23.11.183.12.163.13.183.14.103.15.23.11.183.12.163.13.183.14.103.15.2Exploitability
AV:LAC:LAT:NPR:NUI:NVulnerable System
VC:NVI:HVA:NSubsequent System
SC:NSI:NSA:N6.9/CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N