{"id":"CVE-2026-112895","published":"2026-10-19T21:57:14Z","modified":"2026-10-20T16:08:43Z","title":"Pillow: Unbounded recursion parsing a PDF page tree or trailer chain (incomplete fix for CVE-2026-42310)","vendor":"python-pillow","product":"Pillow","tier":"tail","description":{"text":"Pillow is a Python imaging library. From 5.1.0 until 13.0.0, Pillow can exhaust resources while parsing an existing PDF during an append operation. PdfParser follows page-tree child references without cycle or duplication tracking and follows previous-trailer chains with only an exact repeated-offset guard, so deep or cyclic page trees and long chains of unique trailer offsets can exhaust the Python stack. Repeated non-cyclic /Kids references can also cause super-linear CPU and memory use. An attacker can supply such a PDF to an application that calls Image.save with PDF append enabled. This can raise an uncaught RecursionError or consume excessive CPU and memory before output is written, causing denial of service. This issue is fixed in version 13.0.0.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.7,"severity":"HIGH","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00594,"percentile":0.42458,"provenance":"source"},"cwes":[{"id":"CWE-674","name":"Uncontrolled Recursion"}],"references":[{"url":"https://github.com/python-pillow/Pillow/security/advisories/GHSA-p4wg-p73j-c528","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/python-pillow/Pillow/commit/e2ae7eacad6de68c37eb28b633a97bebacf2c5bf","tags":["x_refsource_MISC"]},{"url":"https://github.com/python-pillow/Pillow/releases/tag/13.0.0","tags":["x_refsource_MISC"]}],"priority":{"score":14.6,"factors":[{"name":"EPSS percentile","points":8.49},{"name":"CVSS severity","points":6.09}]},"vendorSlug":"python-pillow","affectedVersions":[{"vendor":"python-pillow","product":"Pillow","versions":[">= 5.1.0, < 13.0.0"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-10-20T15:19:07.895448Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"pillow","vulnerableRanges":[">=5.1.0, <13.0.0"],"patched":["13.0.0"],"from":["GHSA-p4wg-p73j-c528"],"provenance":"source"}],"summary":{"text":"Pillow, the Python imaging library, has an unbounded recursion flaw in its PdfParser component, which follows PDF page-tree child references and trailer chains without adequate cycle or duplication tracking, in versions from 5.1.0 through 12.x and fixed in 13.0.0. An attacker who can supply a crafted PDF to an application that calls Image.save with PDF append enabled can cause a crash or excessive CPU and memory consumption during parsing, with no authentication or user interaction required beyond that application processing the file.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:38:24Z"},"euvd":{"id":"EUVD-2026-104657","exploited":false,"provenance":"source"}}