Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

github логотип

GHSA-r73j-pqj5-w3x7

Опубликовано: 04 мая 2026
Источник: github
Github: Прошло ревью
CVSS4: 5.1
CVSS3: 5.5

Описание

Pillow has a PDF Parsing Trailer Infinite Loop (DoS)

Impact

An attacker can supply a malicious PDF that causes the process to hang indefinitely, consuming 100% CPU and making the application unresponsive.

Patches

Patched version: 12.2.0.

PdfParser (introduced in Pillow 4.2.0) follows Prev pointers in PDF trailers to read cross-reference sections. If a trailer's Prev pointer references an offset that has already been processed — either pointing to itself or forming a longer cycle — the parser enters an infinite loop. Pillow now tracks previously processed trailer offsets and raises an error if a cycle is detected.

Workarounds

Use any version but the affected versions: >= 4.2.0, < 12.2.0

Resources

Пакеты

Наименование

pillow

pip
Затронутые версииВерсия исправления

>= 4.2.0, < 12.2.0

12.2.0

EPSS

Процентиль: 3%
0.00126
Низкий

5.1 Medium

CVSS4

5.5 Medium

CVSS3

Дефекты

CWE-835

Связанные уязвимости

CVSS3: 5.5
ubuntu
3 месяца назад

Pillow is a Python imaging library. From version 4.2.0 to before version 12.2.0, an attacker can supply a malicious PDF that causes the process to hang indefinitely, consuming 100% CPU and making the application unresponsive. This issue has been patched in version 12.2.0.

CVSS3: 4
redhat
3 месяца назад

Pillow is a Python imaging library. From version 4.2.0 to before version 12.2.0, an attacker can supply a malicious PDF that causes the process to hang indefinitely, consuming 100% CPU and making the application unresponsive. This issue has been patched in version 12.2.0.

CVSS3: 5.5
nvd
3 месяца назад

Pillow is a Python imaging library. From version 4.2.0 to before version 12.2.0, an attacker can supply a malicious PDF that causes the process to hang indefinitely, consuming 100% CPU and making the application unresponsive. This issue has been patched in version 12.2.0.

CVSS3: 5.5
debian
3 месяца назад

Pillow is a Python imaging library. From version 4.2.0 to before versi ...

suse-cvrf
3 месяца назад

Security update for python-Pillow

EPSS

Процентиль: 3%
0.00126
Низкий

5.1 Medium

CVSS4

5.5 Medium

CVSS3

Дефекты

CWE-835