Python Software Foundation CPython
tarfile opened in streaming mode mishandles EOF
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.
First public PoC
None yetno public PoC found
Public PoCs00 on GitHub
CVSS8.2high · scored by CNA · CWE-252
CISA KEV
Not listednot known exploited
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
Python Software Foundation CPython
- < 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
Fixed in 3.10.21, 3.11.16, 3.12.14, 3.13.15, 3.14.7, 3.15.0b4
Mitigation
Upgrade CPython to 3.10.21 or 3.11.16 or 3.12.14 or 3.13.15 or 3.14.7 or 3.15.0b4 or later.
References
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.