BIT-python-min-2026-82049: tarfile extraction filters allow file modification and content disclosure via hard link to symlink
In CPython 3.13 and earlier, the tarfile module's data and tar extraction filters are vulnerable to crafted archives containing a hard link to a symbolic link. Such archives may cause extraction to modify the permissions or modification time of a file outside the destination directory, or expose the contents of that file within the extracted tree.
Affected Software
Event History
Frequently Asked Questions
Which applications are exposed?
Applications running CPython 3.13 or earlier are exposed if they extract untrusted tar archives using the tarfile module's data or tar extraction filters. The crafted archive must contain a hard link that targets a symbolic link.
What could exploitation allow?
A malicious archive can cause extraction to change permissions or modification time on a file outside the intended destination directory. It can also expose the contents of such an outside file within the extracted directory tree.
Does exploitation require an attacker to have an account or code execution on the target?
No privileges are required according to the supplied vector, but user interaction is required. In practice, a user or application must initiate extraction of the crafted archive.