REDHAT-BUG-2491848: High severity Python python/tarfile vulnerability

Published Jun 23, 2026
·
Updated

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

1 affected component
Python python/tarfile

Event History

Jun 23, 2026
Data Sourced
via Red Hat·05:05 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of REDHAT-BUG-2491848?

The severity of REDHAT-BUG-2491848 is high with a score of 7.

2

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.

3

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.

4

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.

5

When was REDHAT-BUG-2491848 published?

REDHAT-BUG-2491848 was published on June 23, 2026.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203