Python Imaging Library Vulnerability in Pillow by Python Software Foundation
CVE-2026-112891
6.9MEDIUM
What is CVE-2026-112891?
The Pillow library, a popular Python imaging solution, exhibits a vulnerability where excessive CPU consumption can occur due to inefficient handling of long comments in GIF files. When an untrusted input image with a large GIF comment is processed, the function responsible for assembling the global header, _get_global_header(), repeatedly copies segments of this data, leading to potential denial of service. Users should upgrade to version 13.0.0 or later to mitigate this issue.
Affected Version(s)
Pillow >= 9.2.0, < 13.0.0
