Vulnerability Details CVE-2026-96640
Pillow is a Python imaging library. From 5.1.0 until 13.0.0, PdfParser.linearize_page_tree() in src/PIL/PdfParser.py treats a PDF /Pages graph as a tree without tracking duplicate indirect references. When Image.save(..., format="PDF", append=True) processes an attacker-controlled existing PDF whose /Kids arrays repeatedly reference the same child /Pages node, Pillow expands the shared subtree as distinct pages. A compact malformed PDF can therefore create exponentially many page references and consume disproportionate CPU before the append completes. This issue is fixed in version 13.0.0.
Exploit prediction scoring system (EPSS) score
EPSS Score 0.006
EPSS Ranking 47.6%
CVSS Severity
CVSS v3 Score 7.5
Products affected by CVE-2026-96640
-
cpe:2.3:a:python:pillow:10.0.0
-
cpe:2.3:a:python:pillow:10.0.1
-
cpe:2.3:a:python:pillow:10.1.0
-
cpe:2.3:a:python:pillow:10.2.0
-
cpe:2.3:a:python:pillow:10.3.0
-
cpe:2.3:a:python:pillow:10.4.0
-
cpe:2.3:a:python:pillow:11.0.0
-
cpe:2.3:a:python:pillow:11.1.0
-
cpe:2.3:a:python:pillow:11.2.1
-
cpe:2.3:a:python:pillow:11.3.0
-
cpe:2.3:a:python:pillow:12.0.0
-
cpe:2.3:a:python:pillow:12.1.0
-
cpe:2.3:a:python:pillow:12.1.1
-
cpe:2.3:a:python:pillow:12.2.0
-
cpe:2.3:a:python:pillow:5.1.0
-
cpe:2.3:a:python:pillow:5.2.0
-
cpe:2.3:a:python:pillow:5.3.0
-
cpe:2.3:a:python:pillow:5.4.0
-
cpe:2.3:a:python:pillow:5.4.1
-
cpe:2.3:a:python:pillow:6.0.0
-
cpe:2.3:a:python:pillow:6.2.0
-
cpe:2.3:a:python:pillow:6.2.2
-
cpe:2.3:a:python:pillow:6.2.3
-
cpe:2.3:a:python:pillow:7.0.0
-
cpe:2.3:a:python:pillow:7.1.0
-
cpe:2.3:a:python:pillow:7.1.1
-
cpe:2.3:a:python:pillow:7.1.2
-
cpe:2.3:a:python:pillow:7.2.0
-
cpe:2.3:a:python:pillow:8.0.0
-
cpe:2.3:a:python:pillow:8.0.1
-
cpe:2.3:a:python:pillow:8.1.0
-
cpe:2.3:a:python:pillow:8.1.1
-
cpe:2.3:a:python:pillow:8.1.2
-
cpe:2.3:a:python:pillow:8.2.0
-
cpe:2.3:a:python:pillow:8.3.0
-
cpe:2.3:a:python:pillow:8.3.1
-
cpe:2.3:a:python:pillow:8.3.2
-
cpe:2.3:a:python:pillow:8.4.0
-
cpe:2.3:a:python:pillow:9.0.0
-
cpe:2.3:a:python:pillow:9.0.1
-
cpe:2.3:a:python:pillow:9.1.0
-
cpe:2.3:a:python:pillow:9.1.1
-
cpe:2.3:a:python:pillow:9.2.0
-
cpe:2.3:a:python:pillow:9.3.0
-
cpe:2.3:a:python:pillow:9.4.0
-
cpe:2.3:a:python:pillow:9.5.0