CVE-2026-96640: Pillow - Denial of Service
- Cve: CVE-2026-96640
- Name: Pillow - Denial of Service
- Description: 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.
- Impact: Attackers can cause excessive CPU consumption leading to denial of service during PDF processing.
- Remediation: Update to version 13.0.0 or later.
- Vulnerability type: denial_of_service
- Vulnerability impact: denial_of_service
- Requirement type: none
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 7.5
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Epss score: 0.00604
- Epss percentile: 0.49647
- Assignee: [email protected]
- Published at: 2026-10-21T21:20:32Z
- Age in days: 34
- Modified at: 2026-10-28T02:17:07Z
- Patch available: yes
- References total: 4
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-96640
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-400 | Uncontrolled Resource Consumption |
References
Same in every row:
- Source: nvd
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| python:pillow | >= 5.1.0, < 13.0.0 | no | nvd | /v1/products/python/pillow |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| python-pillow/Pillow | commit, fix, package, pull, releases, security_advisory | yes | /v1/repositories/python-pillow/Pillow |
Index
- Repositories: 2601
- Repositories high signal: 1492
- Packages: 1
Exploitation
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts