What’s Vulnerable › Vulnerabilities

CVE-2026-114583: tar filter allows writing outside destination via empty-named symlink

Description

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 products

How to fix

Upgrade to a fixed version: Python 3.11.18, 3.12.16, 3.13.18, 3.14.10. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2026-114583 or the next vulnerability affects your stack