{"id":"CVE-2026-112894","revision":"41ba5bcc54bf4ae494c860ef3e7de146","records":[{"revision":"41ba5bcc54bf4ae494c860ef3e7de146","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-112894","aliases":[],"title":"Pillow: Quadratic-time DoS in PDF save_all (PdfParser.next_object_id)","description":"Pillow is a Python imaging library. From 5.1.0 until 13.0.0, Pillow takes quadratic time to reserve PDF object identifiers when saving many frames with save_all enabled. PdfParser.next_object_id() repeatedly rebuilds and scans all previously reserved identifiers for every object. An attacker can supply a multi-frame image, including a small APNG with a large declared frame count, to an application that converts it to a multipage PDF. This can consume excessive CPU and deny service. This issue is fixed in version 13.0.0.","state":0,"publishedAt":"2026-10-19T21:55:19.424+00:00","modifiedAt":"2026-10-20T14:46:13.675+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-jg86-v3jv-hrpm","https://github.com/python-pillow/Pillow/commit/f6a852555f1a1bdff7781abf25f1a3b8bd6ce6cb","https://github.com/python-pillow/Pillow/releases/tag/13.0.0"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-112894","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-112894","identifiers":["CVE-2026-112894"]},"retained":false,"historicalAffected":[]}],"coverage":[]}