tar filter allows writing outside destination via empty-named symlink
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in 3.11.18, 3.12.16, 3.13.18 and 3 more.
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.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Python Software Foundation | <3.11.18, >=3.12.0 <3.12.16, >=3.13.0 <3.13.18, >=3.14.0 <3.14.10, >=3.15.0 <3.15.2, >=3.16.0a1 <3.16.0 | 3.11.18, 3.12.16, 3.13.18, 3.14.10, 3.15.2, 3.16.0 |
Timeline
Every event on this vulnerability
Embed
A live severity badge for an advisory, README or ticket