REDHAT-BUG-2491848: High severity Python python/tarfile vulnerability
tarfile.extractall() with the 'data' or 'tar' filter could be bypassed by a crafted archive where a hardlink references a symlink stored at a deeper name than the hardlink itself. The extraction fallback validated the symlink at it's archived location but recreated it at the hardlink's shallower path, letting a relative target the filter judged contained escape the destination directory. This allowed a malicious tar archive to create a symlink pointing outside the destination, enabling out-of-destination file reads or writes. This was an incomplete fix of CVE-2025-4330.
Affected Software
Event History
Frequently Asked Questions
What is the severity of REDHAT-BUG-2491848?
The severity of REDHAT-BUG-2491848 is high with a score of 7.
How do I fix REDHAT-BUG-2491848?
To fix REDHAT-BUG-2491848, update the Python tarfile module to the patched version provided in the latest security advisory.
What impact does REDHAT-BUG-2491848 have on my system?
REDHAT-BUG-2491848 can allow an attacker to bypass intended security measures during archive extraction using maliciously crafted tar files.
Is my system vulnerable to REDHAT-BUG-2491848?
Systems using the affected versions of the Python tarfile module are potentially vulnerable to REDHAT-BUG-2491848.
When was REDHAT-BUG-2491848 published?
REDHAT-BUG-2491848 was published on June 23, 2026.