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 CVE-2026-11972 in CPython's tarfile module arises when a file is opened in streaming mode (mode="r|"). The module fails to correctly handle the end-of-file (EOF) condition, resulting in exponentially increased parsing time for archives. This flaw can be exploited to cause denial of service through excessive resource consumption. The issue is tracked under CWE-252 (Unchecked Return Value), with related CWEs indicating improper handling of exceptional conditions. The vulnerability is present in CPython versions before 3.16.0. There is no vendor advisory indicating an available patch or fix at this time.
Potential Impact
This vulnerability can cause denial of service by making the tarfile module take exponentially longer to parse archives when used in streaming mode. This leads to resource exhaustion and potential application unavailability. No evidence of active exploitation in the wild is reported.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, avoid using the tarfile module in streaming mode (mode="r|") with untrusted or large archives to mitigate potential denial of service.
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
Run 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 CVE-2026-11972 in CPython's tarfile module arises when a file is opened in streaming mode (mode="r|"). The module fails to correctly handle the end-of-file (EOF) condition, resulting in exponentially increased parsing time for archives. This flaw can be exploited to cause denial of service through excessive resource consumption. The issue is tracked under CWE-252 (Unchecked Return Value), with related CWEs indicating improper handling of exceptional conditions. The vulnerability is present in CPython versions before 3.16.0. There is no vendor advisory indicating an available patch or fix at this time.
Potential Impact
This vulnerability can cause denial of service by making the tarfile module take exponentially longer to parse archives when used in streaming mode. This leads to resource exhaustion and potential application unavailability. No evidence of active exploitation in the wild is reported.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, avoid using the tarfile module in streaming mode (mode="r|") with untrusted or large archives to mitigate potential denial of service.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- PSF
- Date Reserved
- 2026-06-11T11:35:05.520Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a3b078deed863c81eb5d23a
Added to database: 06/23/2026, 22:24:13 UTC
Last enriched: 08/05/2026, 13:11:08 UTC
Last updated: 08/07/2026, 01:25:24 UTC
Views: 601
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.