Tarfile infinite loop during parsing with negative member offset
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in 3.9.24, 3.10.19, 3.11.14 and 3 more.
There is a defect in the CPython “tarfile” module affecting the “TarFile” extraction and entry enumeration APIs. The tar implementation would process tar archives with negative offsets without error, resulting in an infinite loop and deadlock during the parsing of maliciously crafted tar archives. This vulnerability can be mitigated by including the following patch after importing the “tarfile” module: https://gist.github.com/sethmlarson/1716ac5b82b73dbcbf23ad2eff8b33e1
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Python Software Foundation | <3.9.24, >=3.10.0 <3.10.19, >=3.11.0 <3.11.14, >=3.12.0 <3.12.12, >=3.13.0 <3.13.6, >=3.14.0a1 <3.14.0rc2 | 3.9.24, 3.10.19, 3.11.14, 3.12.12, 3.13.6, 3.14.0rc2 |
Timeline
Every event on this vulnerability
Embed
A live severity badge for an advisory, README or ticket