CVE-2025-4435: Vulnerability in Python Software Foundation CPython
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.
AI Analysis
Technical Summary
The vulnerability in CPython's tarfile module involves the errorlevel attribute set to 0, which is intended to skip extraction of filtered members. However, in affected versions, filtered members are still extracted contrary to documentation. This is classified under CWE-682 (Incorrect Calculation) and has a CVSS 3.1 score of 7.5 (high severity) with network attack vector, low attack complexity, no privileges required, no user interaction, unchanged scope, no confidentiality impact, high integrity impact, and no availability impact. No official patch or remediation link is provided in the data, and no known exploits are reported.
Potential Impact
The vulnerability can lead to unintended extraction of archive members that should have been skipped, potentially allowing malicious or unwanted files to be extracted. This impacts the integrity of the extraction process but does not affect confidentiality or availability. Since the attack vector is network-based and requires no privileges or user interaction, remote exploitation is feasible if an attacker can supply crafted tar archives to a vulnerable system.
Mitigation Recommendations
Patch status is not yet confirmed — check the Python Software Foundation advisory for current remediation guidance. Until an official fix is released, users should exercise caution when extracting tar archives with filters using affected CPython versions. Avoid processing untrusted tar files or implement additional validation to ensure only intended members are extracted.
CVE-2025-4435: Vulnerability in Python Software Foundation CPython
Description
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.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in CPython's tarfile module involves the errorlevel attribute set to 0, which is intended to skip extraction of filtered members. However, in affected versions, filtered members are still extracted contrary to documentation. This is classified under CWE-682 (Incorrect Calculation) and has a CVSS 3.1 score of 7.5 (high severity) with network attack vector, low attack complexity, no privileges required, no user interaction, unchanged scope, no confidentiality impact, high integrity impact, and no availability impact. No official patch or remediation link is provided in the data, and no known exploits are reported.
Potential Impact
The vulnerability can lead to unintended extraction of archive members that should have been skipped, potentially allowing malicious or unwanted files to be extracted. This impacts the integrity of the extraction process but does not affect confidentiality or availability. Since the attack vector is network-based and requires no privileges or user interaction, remote exploitation is feasible if an attacker can supply crafted tar archives to a vulnerable system.
Mitigation Recommendations
Patch status is not yet confirmed — check the Python Software Foundation advisory for current remediation guidance. Until an official fix is released, users should exercise caution when extracting tar archives with filters using affected CPython versions. Avoid processing untrusted tar files or implement additional validation to ensure only intended members are extracted.
Technical Details
- Data Version
- 5.1
- Assigner Short Name
- PSF
- Date Reserved
- 2025-05-08T15:05:11.874Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 683f0dc3182aa0cae27ff441
Added to database: 6/3/2025, 2:59:15 PM
Last enriched: 4/22/2026, 5:42:29 AM
Last updated: 5/8/2026, 11:44:10 AM
Views: 409
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.