REDHAT-BUG-2533296: High severity Python Software Foundation CPython vulnerability
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 Python versions should be considered affected?
CPython 3.13 and earlier are identified as affected. The issue is in the tarfile module when using the data or tar extraction filters.
What conditions are required for exploitation?
An attacker needs to supply a crafted tar archive containing a hard link to a symbolic link, and the archive must be extracted with a vulnerable tarfile extraction filter. Applications that extract attacker-controlled archives are the relevant exposure point.
What impact can a successful exploit have outside the extraction directory?
Extraction can modify the permissions or modification time of a file outside the destination directory. It can also expose the contents of such a file within the extracted tree.