{"id":"CVE-2026-112406","revision":"1bd45208ade54a7f84690f0973307f18","records":[{"revision":"1bd45208ade54a7f84690f0973307f18","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-112406","aliases":[],"title":"Pillow: Infinite loop in PdfParser.rewrite_pages on page tree Parent cycle","description":"Pillow is a Python imaging library. From 5.1.0 until 13.0.0, Pillow can enter an infinite loop while rewriting PDF pages. PdfParser.rewrite_pages() follows Parent relationships without detecting a cycle in the page tree. An attacker can supply a cyclic PDF to an application that appends an image to that PDF. This can hold the worker at full CPU and deny service. This issue is fixed in version 13.0.0.","state":0,"publishedAt":"2026-10-19T21:31:49.946+00:00","modifiedAt":"2026-10-20T16:08:57.551+00:00","affected":[{"ecosystem":"Vendor product","name":"Pillow","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"python-pillow\",\n                    \"product\": \"Pillow\",\n                    \"versions\": [\n                        {\n                            \"version\": \">= 5.1.0, < 13.0.0\",\n                            \"status\": \"affected\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 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","score":8.7,"severity":"HIGH"}],"references":["https://github.com/python-pillow/Pillow/security/advisories/GHSA-f2g6-542v-9j58","https://github.com/python-pillow/Pillow/commit/b3ebf20c694f2f12537a629c30229a1d5a53f777","https://github.com/python-pillow/Pillow/releases/tag/13.0.0"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-112406","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-112406","identifiers":["CVE-2026-112406"]},"retained":false,"historicalAffected":[]}],"coverage":[]}