{"id":"CVE-2026-112391","published":"2026-10-19T20:40:36Z","modified":"2026-10-20T16:09:28Z","title":"Pillow: PdfParser can recurse without limit in get_value() and linearize_page_tree()","vendor":"python-pillow","product":"Pillow","tier":"tail","description":{"text":"Pillow is a Python imaging library. From 5.1.0 until 13.0.0, Pillow's PdfParser.get_value() can recurse without a limit while reading nested PDF objects. The parser follows attacker-controlled arrays and dictionaries when an existing PDF is opened for append. An attacker can provide a deeply nested PDF to an application that saves an image with PDF append enabled. This can raise an uncaught RecursionError or terminate the worker, causing denial of service. This issue is fixed in version 13.0.0.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.3,"severity":"MEDIUM","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00581,"percentile":0.41681,"provenance":"source"},"cwes":[{"id":"CWE-835","name":"Loop with Unreachable Exit Condition"}],"references":[{"url":"https://github.com/python-pillow/Pillow/security/advisories/GHSA-254f-3936-288h","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/python-pillow/Pillow/commit/94cb11c44ff7345414da17ebfea1598a529ad9cd","tags":["x_refsource_MISC"]},{"url":"https://github.com/python-pillow/Pillow/releases/tag/13.0.0","tags":["x_refsource_MISC"]}],"priority":{"score":12.7,"factors":[{"name":"EPSS percentile","points":8.34},{"name":"CVSS severity","points":4.41}]},"vendorSlug":"python-pillow","affectedVersions":[{"vendor":"python-pillow","product":"Pillow","versions":[">= 5.1.0, < 13.0.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-10-20T15:10:23.482670Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"Pillow","vulnerableRanges":[">=5.1.0, <13.0.0"],"patched":["13.0.0"],"from":["GHSA-254f-3936-288h"],"provenance":"source"}],"summary":{"text":"The Pillow imaging library's PdfParser component, in its get_value() and linearize_page_tree() routines, follows nested PDF arrays and dictionaries without any recursion limit, affecting Pillow from 5.1.0 up to but not including 13.0.0. An attacker with network access and no authentication or user interaction can supply a deeply nested PDF to an application that saves images with PDF append enabled, causing an uncaught RecursionError or worker termination and thereby a denial of service.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:39:02Z"},"euvd":{"id":"EUVD-2026-104601","exploited":false,"provenance":"source"}}