tarfile opened in streaming mode mishandles EOF
CVE-2026-11972Published 23 Jun 2026, 22:02 UTC
Real-world risk
1.5/ 10Low
Routine
If the vulnerable configuration applies to you: 3.4
PreliminaryFrom the CVSS vector only · confidence low
CVSS
8.2
scored by the vendor (CNA), CVSS 4.0
In plain words
No plain-language summary yet. The original description is below.
Original description (from PSF)
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.
Am I affected?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| CPythonUbiquitous | < 3.10.21; >= 3.11.0, < 3.11.16; >= 3.12.0, < 3.12.14; >= 3.13.0, < 3.13.15; >= 3.14.0, < 3.14.7; >= 3.15.0a1, < 3.15.0b4 | 3.10.21, 3.11.16, 3.12.14, 3.13.15, 3.14.7, 3.15.0b4 |
What to do
Update to a fixed version: 3.10.21, 3.11.16, 3.12.14, 3.13.15, 3.14.7, 3.15.0b4.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | Denial of serviceCrash or resource exhaustion only | From the CVSS vector | 0.40 |
| Attacker position | InternetAnyone on the Internet can reach a typical deployment | From the CVSS vector | 1.00 |
| Privileges needed | NoneNo account | From the CVSS vector | 1.00 |
| Victim interaction | NoneNothing | From the CVSS vector | 1.00 |
| Configuration | UncommonNeeds a non-default feature that a minority enables | From the CVSS vector | 0.45 |
| Reliability | ReliableDeterministic: injection, logic bug, path traversal | From the CVSS vector | 1.00 |
Threat level T1: Nothing known (× 0.85)
The default for a new disclosure
EPSS 0.4% chance of exploitation in 30 days (percentile 40), as of 2026-12-03.
The arithmetic
- Prerequisites multiplied together0.450
- Threat T1: Nothing known0.850
- 10 × impact 0.4 × prerequisites 0.45 × threat 0.851.530
- Rounded to one decimal between 0.1 and 101.5
Exploitation and evidence timeline
- 23 Jun 2026 Published
- 3 Dec 2026 Risk 1.5 (cvss fallback)
Weakness
CWE-252, CWE-606, CWE-770
References
- https://github.com/python/cpython/issues/151981issue-tracking
- https://github.com/python/cpython/pull/151982patch
- https://mail.python.org/archives/list/[email protected]/thread/AXPSKKTSRKXTTJULW3XSIC74WZNAAPPB/vendor-advisory
- https://github.com/python/cpython/commit/3f031d431f80668e14f3bc066bbf4369cd9281b9patch
- https://github.com/python/cpython/commit/4ce6bf7c8aa7725828a38981c306f214c1f29365patch
- https://github.com/python/cpython/commit/7f0dc59c9a70f8f3b4da33d7c4a2ba552a7acc21patch
- https://github.com/python/cpython/commit/e86666c9dd256d52d0fbef6feb1ea4a51768fdecpatch
- https://github.com/python/cpython/commit/eb63c0f94dfcbea7fda8eab6213818e134d67192patch
- https://github.com/python/cpython/commit/f50bf13566189c8d0ce5a814f33eff3d89951896patch
- https://github.com/python/cpython/commit/f5e2776ff0383a902c12acf2b703e7e951fc8438patch
- CVE-2026-11972 on CVE.org