CVE-2025-4435: Tarfile extracts filtered members when errorlevel=0

Published Jun 3, 2025
·
Updated

Tarfile extracts filtered members when errorlevel=0

Other sources

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.

Red Hat

Affected Software

11 affected componentsFixes available
Python TarFile
Microsoft cbl2 python3 3.9.19-15
Microsoft cbl2 python3 3.9.19-17
Microsoft cbl2 python3 3.9.19-16
Microsoft azl3 python3 3.12.9-1
IBM Cloud Pak System<=2.3.4.0
IBM Cloud Pak System<=2.3.4.1 2.3.4.1 ifix1
IBM Cloud Pak System<=2.3.5.0
IBM Cloud Pak System<=2.3.6.0
IBM OS Image for Red Hat Linux Systems<=4.0.4.0 4.0.5.0 4.0.6.0 4.0.7.0
IBM OS Image for Red Hat Linux Systems<=5.0.0.0 5.0.1.0

Event History

Jun 3, 2025
CVE Published
via MITRE·12:59 PM
Data Sourced
via MITRE·12:59 PM
DescriptionSeverity
Data Sourced
via NVD·01:15 PM
DescriptionSeverityWeakness
Data Sourced
via Red Hat·02:01 PM
DescriptionSeverityAffected Software
Sep 4, 2025
Data Sourced
via Microsoft·03:03 AM
DescriptionSeverityWeaknessAffected Software
Updated
via Microsoft·03:03 AM
Affected Software
Updated
via Microsoft·03:03 AM
SeverityAffected Software
Updated
via Microsoft·10:03 AM
Affected Software
Updated
via Microsoft·10:03 AM
DescriptionSeverity
Jan 30, 2026
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2025-4435?

The severity of CVE-2025-4435 is considered moderate due to incorrect extraction behavior impacting security through unintended file access.

2

How do I fix CVE-2025-4435?

To fix CVE-2025-4435, update your Python TarFile module to the latest version that implements the correct extraction logic.

3

What systems are affected by CVE-2025-4435?

CVE-2025-4435 specifically affects the Python TarFile module in its vulnerable versions.

4

What are the implications of CVE-2025-4435?

CVE-2025-4435 can lead to unauthorized file extraction, potentially exposing sensitive data to attackers.

5

Is there a workaround for CVE-2025-4435?

As a workaround for CVE-2025-4435, avoid using TarFile.errorlevel = 0 until the issue is resolved in an updated version.

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