REDHAT-BUG-2559388: Medium severity Python Software Foundation Python vulnerability

Published Oct 22, 2026
·
Updated

tarfile.tarfilter could be bypassed using crafted link entries, including symlinks with empty or directory-like names, to redirect later archive members outside the intended extraction directory. This allowed a malicious tar archive to cause tarfile.extractall() with filter="tar" to write files outside the destination directory, subject to the permissions of the extracting process.

This is the tarfile.tarfilter counterpart of CVE-2026-7774, which covered tarfile.datafilter.

Affected Software

1 affected component
Python Software Foundation Python

Event History

Oct 22, 2026
Data Sourced
via Red Hat·09:12 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

What conditions are required for exploitation?

An attacker must be able to supply or influence a malicious tar archive that is extracted with tarfile.extractall() using filter="tar". The files written outside the intended destination are limited by the permissions of the process performing extraction.

2

Are applications using the tar filter exposed by default?

The issue affects extraction specifically when filter="tar" is used. The provided information does not establish whether an application selects that filter by default.

3

What can happen if exploitation succeeds?

Crafted link entries, including symlinks with empty or directory-like names, can redirect later archive members outside the intended extraction directory. This can cause files to be written to other locations accessible to the extracting process.

4

How can I identify potentially affected code?

Review code paths that process untrusted or attacker-influenced tar archives and call tarfile.extractall() with filter="tar". Pay particular attention to services or automation that extract archives under accounts able to write beyond the designated extraction directory.

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