CVE-2026-11972: CWE-252 in Python Software Foundation CPython
CVE-2026-11972 is a high-severity vulnerability in the Python Software Foundation's CPython implementation. It affects the tarfile module when used in streaming mode (mode="r|"). The module does not properly handle the end-of-file (EOF) condition, which can cause an archive to be parsed in an infinite loop. This issue affects CPython versions prior to 3.16.0.
AI Analysis
Technical Summary
The vulnerability in CPython's tarfile module arises when a file is opened in streaming mode (mode="r|"). The module fails to correctly detect or handle the EOF condition, leading to a potential infinite loop during archive parsing. This is classified under CWE-252 (Unchecked Return Value) and related weaknesses. The CVSS 4.0 base score is 8.2, indicating a high severity with network attack vector, low attack complexity, and no privileges or user interaction required. No official patch or remediation level has been provided yet by the Python Software Foundation.
Potential Impact
An attacker could craft a tar archive that, when processed by the vulnerable tarfile module in streaming mode, causes the parsing process to enter an infinite loop. This could lead to denial of service by exhausting system resources or causing application hang. There is no indication of code execution or data corruption from the provided data.
Mitigation Recommendations
Patch status is not yet confirmed — check the Python Software Foundation advisory for current remediation guidance. Until a fix is available, avoid processing untrusted tar archives in streaming mode or implement external controls to limit resource consumption during tarfile processing.
CVE-2026-11972: CWE-252 in Python Software Foundation CPython
Description
CVE-2026-11972 is a high-severity vulnerability in the Python Software Foundation's CPython implementation. It affects the tarfile module when used in streaming mode (mode="r|"). The module does not properly handle the end-of-file (EOF) condition, which can cause an archive to be parsed in an infinite loop. This issue affects CPython versions prior to 3.16.0.
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 in CPython's tarfile module arises when a file is opened in streaming mode (mode="r|"). The module fails to correctly detect or handle the EOF condition, leading to a potential infinite loop during archive parsing. This is classified under CWE-252 (Unchecked Return Value) and related weaknesses. The CVSS 4.0 base score is 8.2, indicating a high severity with network attack vector, low attack complexity, and no privileges or user interaction required. No official patch or remediation level has been provided yet by the Python Software Foundation.
Potential Impact
An attacker could craft a tar archive that, when processed by the vulnerable tarfile module in streaming mode, causes the parsing process to enter an infinite loop. This could lead to denial of service by exhausting system resources or causing application hang. There is no indication of code execution or data corruption from the provided data.
Mitigation Recommendations
Patch status is not yet confirmed — check the Python Software Foundation advisory for current remediation guidance. Until a fix is available, avoid processing untrusted tar archives in streaming mode or implement external controls to limit resource consumption during tarfile processing.
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: 06/23/2026, 22:39:04 UTC
Last updated: 06/23/2026, 23:19:02 UTC
Views: 13
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.