Inefficient Algorithmic Complexity in Pillow - CVE-2026-112891
Published: November 3, 2026
Vulnerability details
The vulnerability allows a remote attacker to cause a denial of service through excessive CPU consumption.
The vulnerability exists due to inefficient algorithmic complexity in Pillow's _get_global_header() function when saving GIF images containing long comments. A remote attacker can submit a crafted image with a long comment to a service that automatically resaves uploaded images as GIFs to trigger repeated copying of comment data with quadratic processing cost and cause a denial of service.