BIT-libpython-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
Who is exposed to this issue?
Applications running CPython 3.13 or earlier are exposed when they extract crafted tar archives using the tarfile module's data or tar extraction filters. The issue requires an archive containing a hard link to a symbolic link.
What can a crafted archive do during extraction?
It may modify the permissions or modification time of a file outside the intended destination directory. It may also disclose that file's contents within the extracted directory tree.