В модуле «tarfile» CPython имеется дефект, влияющий на API-интерфейсы извлечения «TarFile» и перечисления записей. Реализация tar будет обрабатывать tar-архивы с отрицательными смещениями без ошибок, что приведет к бесконечному циклу и взаимоблокировке во время анализа вредоносно созданных tar-архивов.
Эту уязвимость можно устранить, включив следующий патч после импорта модуля «tarfile»: https://gist.github.com/sethmlarson/1716ac5b82b73dbcbf23ad2eff8b33e1
Показать оригинальное описание (EN)
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
Характеристики атаки
Последствия
Строка CVSS v3.1