CVE-2026-112891
pillow: pillow: Denial of Service via large GIF comments
Severity
ModerateRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · October 20, 2026
Updated · November 4, 2026
Description
A flaw was found in Pillow. A remote attacker can cause a Denial of Service (DoS) by providing a specially crafted image with an excessively large comment to an application that saves it as a GIF. Due to inefficient data copying while assembling image headers, processing such comments consumes excessive CPU resources and can render the application unresponsive.
Statement
This vulnerability is assessed as having a Moderate impact because it results solely in a denial of service via CPU exhaustion without compromising system confidentiality or data integrity. In Red Hat environments, the affected library is utilized across various service and container workloads, but triggering the flaw requires an application to ingest untrusted image input and subsequently write or re-encode it using the GIF format. Workloads that do not accept external input or do not serialize images to GIF remain unaffected.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
No mitigation is specified in collected source.
CVSS / CWE
CVSS 3.1 · 5.3CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
CWE-770 · Allocation of Resources Without Limits or Throttling