CVE-2026-96640
High 7.5 P4 · Monitor (22/100)Pillow PDF append accepts malformed shared page-tree DAG causing resource exhaustion
Confirmed facts from the sources
- CVSS
- 7.5 (High) · CVSS 3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Scored by nvd@nist.gov - Exploitation confirmed
- Not in the CISA KEV catalog
- Exploitation estimated (EPSS)
- 0.60 % · percentile 43.1 % (as of 29.11.2026)
Probability of exploitation in the next 30 days – an estimate by FIRST, not confirmation. - Public exploit
- No reference to a public exploit.
- Fix
- Fix available
- Monitored technologies
- Oracle Linux and OKE
Description (source)
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.
Affected products and versions
| Vendor / product | Affected versions | Fixed in | Source |
|---|---|---|---|
| python-pillow Pillow | = >= 5.1.0, < 13.0.0 | — | nvd |
| python pillow | >= 5.1.0, < 13.0.0 | — | nvd |
| pip: Pillow | >= 5.1.0, < 13.0.0 | 13.0.0 | github |
| rpm: python3-pillow-devel | < 5.1.1-33.el8_10 | 5.1.1-33.el8_10 | oracle-linux |
| rpm: python3-pillow-doc | < 5.1.1-33.el8_10 | 5.1.1-33.el8_10 | oracle-linux |
| rpm: python3-pillow-tk | < 5.1.1-33.el8_10 | 5.1.1-33.el8_10 | oracle-linux |
Versions as published. “Fixed in” only where a source names the version explicitly.
Recommended mitigation
Fixed versions: Pillow 13.0.0, python3-pillow-devel 5.1.1-33.el8_10, python3-pillow-doc 5.1.1-33.el8_10, python3-pillow-tk 5.1.1-33.el8_10
- github.com (Patch)
In general: check your versions, update to a fixed version, limit exposure until then and follow the vendor guidance.
AI interpretation
No AI interpretation yet – it is created for urgent advisories of monitored technologies. The facts above apply regardless.
Why this priority?: P4 · Monitor (22/100)
- Estimated exploitation probability 0.6 % (EPSS, percentile 43.1 %) – an estimate, not confirmation (+0)
- Technical severity: CVSS 7.5 (HIGH) – on its own not a reason for top priority (+12)
- Concerns 1 monitored technolog(y/ies) (CPE, package or vendor) (+10)
- Fix available – plan the update (+0)
Priority is a general assessment from CVSS, KEV, EPSS, exploits, relevance and fix availability. Whether a specific environment is affected depends on its versions, configuration and exposure.
Original advisories and links
- Advisory https://github.com/python-pillow/Pillow/security/advisories/GHSA-mrfp-p49p-3hf2 · security-advisories@github.com
- Advisory https://nvd.nist.gov/vuln/detail/CVE-2026-96640 · nvd
- Advisory https://github.com/advisories/GHSA-mrfp-p49p-3hf2 · github
- Advisory https://linux.oracle.com/errata/ELSA-2026-92639.html · oracle-linux
- Patch https://github.com/python-pillow/Pillow/commit/6f0e7ee1f9c2fe227906f8a4b926e6622b702bc7 · security-advisories@github.com
- Reference https://github.com/python-pillow/Pillow/pull/10093 · security-advisories@github.com
- Reference https://github.com/python-pillow/Pillow/releases/tag/13.0.0 · security-advisories@github.com