CVE-2026-11972: CWE-252 in Python Software Foundation CPython
When using the "tarfile" module with a file opened in "streaming mode" (mode="r|") the tarfile module did not properly handle EOF, making archive parsing take exponentially longer.
AI Analysis
Technical Summary
The vulnerability exists in the Python Software Foundation's CPython implementation, specifically in the tarfile module when a file is opened in streaming mode (mode="r|"). The module fails to correctly handle the end-of-file (EOF) condition, resulting in exponential delays during archive parsing. This flaw is categorized under CWE-252 (Unchecked Return Value) and related weaknesses. The CVSS 4.0 score is 8.2, indicating high severity, with network attack vector, low attack complexity, and no user interaction required. No official patch or remediation level is currently provided by the vendor, and no known exploits are reported in the wild.
Potential Impact
The improper EOF handling causes the tarfile module to take exponentially longer to parse archives in streaming mode, potentially leading to denial of service through resource exhaustion or significant performance degradation in applications relying on tarfile for archive processing.
Mitigation Recommendations
Patch status is not yet confirmed — check the Python Software Foundation advisory for current remediation guidance. Until a fix is available, users should avoid using the tarfile module in streaming mode with untrusted archives or implement additional timeout or resource usage limits in their applications to mitigate potential performance impacts.
CVE-2026-11972: CWE-252 in Python Software Foundation CPython
Description
When using the "tarfile" module with a file opened in "streaming mode" (mode="r|") the tarfile module did not properly handle EOF, making archive parsing take exponentially longer.
CVSS v4.0
Score 8.2high
Affected software
Python Software Foundation
CPython
pkg:github/CPythonRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability exists in the Python Software Foundation's CPython implementation, specifically in the tarfile module when a file is opened in streaming mode (mode="r|"). The module fails to correctly handle the end-of-file (EOF) condition, resulting in exponential delays during archive parsing. This flaw is categorized under CWE-252 (Unchecked Return Value) and related weaknesses. The CVSS 4.0 score is 8.2, indicating high severity, with network attack vector, low attack complexity, and no user interaction required. No official patch or remediation level is currently provided by the vendor, and no known exploits are reported in the wild.
Potential Impact
The improper EOF handling causes the tarfile module to take exponentially longer to parse archives in streaming mode, potentially leading to denial of service through resource exhaustion or significant performance degradation in applications relying on tarfile for archive processing.
Mitigation Recommendations
Patch status is not yet confirmed — check the Python Software Foundation advisory for current remediation guidance. Until a fix is available, users should avoid using the tarfile module in streaming mode with untrusted archives or implement additional timeout or resource usage limits in their applications to mitigate potential performance impacts.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- PSF
- Date Reserved
- 2026-06-11T11:35:05.520Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6a3b078deed863c81eb5d23a
Added to database: 06/23/2026, 22:24:13 UTC
Last enriched: 08/12/2026, 15:07:46 UTC
Last updated: 09/22/2026, 20:18:19 UTC
Views: 765
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.