{"id":"CVE-2026-112891","revision":"73bfc198d1ac4036935299fabf1270da","records":[{"revision":"73bfc198d1ac4036935299fabf1270da","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-112891","aliases":[],"title":"Pillow: Quadratic GIF comment copying during save","description":"Pillow is a Python imaging library. From 9.2.0 until 13.0.0, Pillow performs quadratic copying when saving a GIF with a long comment. _get_global_header() repeatedly copies portions of comment data while assembling the global header, including comments retained from an untrusted input image. An attacker can supply an image with a large GIF comment to an application that saves it as GIF. This can consume excessive CPU and delay or deny service. This issue is fixed in version 13.0.0.","state":0,"publishedAt":"2026-10-19T21:33:32.18+00:00","modifiedAt":"2026-10-20T13:54:10.37+00:00","affected":[{"ecosystem":"Vendor product","name":"Pillow","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"python-pillow\",\n                    \"product\": \"Pillow\",\n                    \"versions\": [\n                        {\n                            \"version\": \">= 9.2.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:L/SC:N/SI:N/SA:N","score":6.9,"severity":"MEDIUM"}],"references":["https://github.com/python-pillow/Pillow/security/advisories/GHSA-fc9g-5qg7-mf45","https://github.com/python-pillow/Pillow/commit/68a3fe957d8a4d552e8c69d96066d749f0614c7e","https://github.com/python-pillow/Pillow/releases/tag/13.0.0"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-112891","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-112891","identifiers":["CVE-2026-112891"]},"retained":false,"historicalAffected":[]}],"coverage":[]}