PSF-2025-8: Tarfile extracts filtered members when errorlevel=0

Published Jun 3, 2025
·
Updated

When using a TarFile.errorlevel = 0 and extracting with a filter the documented behavior is that any filtered members would be skipped and not extracted. However the actual behavior of TarFile.errorlevel = 0 in affected versions is that the member would still be extracted and not skipped.

Affected Software

1 affected component
Python Software Foundation Python tarfile

Event History

Jun 3, 2025
CVE Published
via OSV·12:59 PM
Data Sourced
via OSV·12:59 PM
DescriptionSeverity

Frequently Asked Questions

1

Which applications are exposed to this behavior?

Applications are exposed when they use Python's tarfile module, set TarFile.errorlevel to 0, and extract archives with a filter while relying on filtered members being skipped.

2

What does an attacker need to exploit this issue?

An attacker would need an archive processed by an affected application under the errorlevel=0 and filtered-extraction conditions. Members rejected by the filter may still be extracted.

3

Are default tarfile extraction settings affected?

The provided information identifies the issue specifically for TarFile.errorlevel=0. It does not establish that default settings are affected.

4

What can be done if updating is not immediately possible?

Avoid relying on filtered members being skipped when TarFile.errorlevel is set to 0. Use an extraction approach that ensures rejected members are not extracted.

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