Tarfile infinite loop during parsing with negative member offset
Python Software Foundation CPython
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Python Software Foundation CPython |
| No fix yet |
Original description
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.