{"id":"CVE-2026-112391","title":"Pillow: PdfParser can recurse without limit in get_value() and linearize_page_tree()","summary":"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…","severity":"medium","cvss":6.3,"cvssVector":"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","cvssSource":"cna","cwe":["CWE-835"],"vendor":"python-pillow","product":"Pillow","affected":["Pillow >= 5.1.0, < 13.0.0"],"published":"2026-10-19","updated":"2026-10-19","sourceUpdated":"2026-10-19T20:40:36.285Z","source":"CVEORG","sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-112391","references":[{"url":"https://github.com/python-pillow/Pillow/security/advisories/GHSA-254f-3936-288h","label":"https://github.com/python-pillow/Pillow/security/advisories/GHSA-254f-3936-288h"},{"url":"https://github.com/python-pillow/Pillow/commit/94cb11c44ff7345414da17ebfea1598a529ad9cd","label":"https://github.com/python-pillow/Pillow/commit/94cb11c44ff7345414da17ebfea1598a529ad9cd"},{"url":"https://github.com/python-pillow/Pillow/releases/tag/13.0.0","label":"https://github.com/python-pillow/Pillow/releases/tag/13.0.0"}],"tags":["cve.org"],"ingestedAt":"2026-10-19T21:43:56.152Z","slug":"CVE-2026-112391","body":"## Overview\n\nPillow 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.\n\n## Affected\n\n- `Pillow >= 5.1.0, < 13.0.0`\n\n## Remediation\n\nRefer to the linked advisories for vendor-supplied fixes and affected version ranges.","depth":"sunlit","depthScore":35,"depthScoreParts":{"impact":34.7,"likelihood":0,"exploitation":0,"ransomware":0},"changes":[]}