{"cve":"CVE-2026-96640","nvd":{"published":"2026-10-21T21:20:32.357","modified":"2026-10-22T16:46:48.920","status":"Undergoing Analysis","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.","cvss_v4":{"vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","score":8.2},"cvss_v3":null,"cwes":["CWE-400","CWE-407"],"references":["https://github.com/python-pillow/Pillow/commit/6f0e7ee1f9c2fe227906f8a4b926e6622b702bc7","https://github.com/python-pillow/Pillow/pull/10093","https://github.com/python-pillow/Pillow/releases/tag/13.0.0","https://github.com/python-pillow/Pillow/security/advisories/GHSA-mrfp-p49p-3hf2"],"products":[],"source":"nvd","synced_at":"2026-10-23T16:39:28.036610720+00:00"},"epss":{"cve":"CVE-2026-96640","score":0.00515,"percentile":0.43564,"date":"2026-10-25"},"kev":null,"osv":[{"id":"GHSA-mrfp-p49p-3hf2","url":"https://osv.dev/vulnerability/GHSA-mrfp-p49p-3hf2","summary":"Pillow PDF append accepts malformed shared page-tree DAG causing resource exhaustion","modified":"2026-10-22T16:15:49.299882714Z","packages":[{"ecosystem":"PyPI","name":"pillow","purl":"pkg:pypi/pillow","ranges":[">=5.1.0 <13.0.0"],"fixed":["13.0.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}