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.
References10
- github.com/python/cpython/commit/3f031d431f80668e14f3bc066bbf43…
- github.com/python/cpython/commit/4ce6bf7c8aa7725828a38981c306f2…
- github.com/python/cpython/commit/7f0dc59c9a70f8f3b4da33d7c4a2ba…
- github.com/python/cpython/commit/e86666c9dd256d52d0fbef6feb1ea4…
- github.com/python/cpython/commit/eb63c0f94dfcbea7fda8eab6213818…
- github.com/python/cpython/commit/f50bf13566189c8d0ce5a814f33eff…
- github.com/python/cpython/commit/f5e2776ff0383a902c12acf2b703e7…
- github.com/python/cpython/issues/151981
- github.com/python/cpython/pull/151982
- mail.python.org/archives/list/[email protected]/thre…
Metrics
- CVSS 4.0
-
8.2
HIGH
Score source: CNA
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X - EPSS — exploit probability
- 1% percentile: 54 · as of 16 November 2026
- CWE
- CWE-252CWE-606CWE-770
Could this be exploited in your environment?
A patch closes the known hole. A penetration test shows what an attacker can still reach — with proof.