PT-2026-120834 · Pypi · Pillow

CVE-2026-96640

·

Published

2026-10-21

·

Updated

2026-10-22

CVSS v4.0

8.2

High

VectorAV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Name of the Vulnerable Software and Affected Versions Pillow versions 5.1.0 through 12.11.0
Description The PdfParser.linearize page tree() function in src/PIL/PdfParser.py treats a PDF /Pages graph as a tree without tracking duplicate indirect references. When the Image.save() function is used with format="PDF" and append=True to process a malformed PDF where /Kids arrays repeatedly reference the same child /Pages node, the library expands the shared subtree as distinct pages. This can lead to the creation of exponentially many page references, resulting in disproportionate CPU consumption.
Recommendations Update to version 13.0.0.

Exploit

Fix

Resource Exhaustion

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2026-96640
GHSA-MRFP-P49P-3HF2

Affected Products

Pillow