cve.bz

CVE-2026-112891 python pillow: Inefficient Algorithmic Complexity

6.9 mediumEPSS 0.5%Fix available

Medium (6.9) in python pillow. EPSS 0.5% estimated probability of exploitation activity in the next 30 days. Fixed in pillow 13.0.0.

On this page
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.

Severity

CVSS 4.0

6.9 medium
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

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
0.5% (unchanged from 0.5% a week ago) estimated probability of exploitation activity in the next 30 days; 47th percentile. Scored 2026-11-17. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2026-10-20. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-407 Inefficient Algorithmic Complexity
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-112891 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-112891?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-112891?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-112891 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
python:pillowfrom 9.2.0 before 13.0.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-fc9g-5qg7-mf45PyPIpillow>=9.2.0 <13.0.013.0.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13pillowno fix listedDEBIAN-CVE-2026-112891
Debian14pillow13.0.0-1DEBIAN-CVE-2026-112891
Ubuntu22.04:LTSpillow9.0.1-1ubuntu0.7USN-9064-1
Ubuntu24.04:LTSpillow10.2.0-1ubuntu1.5UBUNTU-CVE-2026-112891 USN-9064-1
Ubuntu26.04:LTSpillow12.1.1-2ubuntu1.5UBUNTU-CVE-2026-112891 USN-9064-1
Ubuntu26.10pillow12.3.0-1ubuntu2UBUNTU-CVE-2026-112891 USN-9064-1
UbuntuPro:14.04:LTSpillow2.3.0-1ubuntu3.4+esm6USN-9064-1
UbuntuPro:16.04:LTSpillow3.1.2-0ubuntu1.6+esm4USN-9064-1
UbuntuPro:18.04:LTSpillow5.1.0-1ubuntu0.8+esm3USN-9064-1
UbuntuPro:20.04:LTSpillow7.0.0-4ubuntu0.9+esm2USN-9064-1
UbuntuPro:20.04:LTSpillow-python2no fix listedUBUNTU-CVE-2026-112891
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 8 morepython-Pillow9.5.0-150400.5.28.1SUSE-SU-2026:5194-1
SUSELinux Enterprise Module for Package Hub 15 SP7python-Pillow7.2.0-150300.3.33.1SUSE-SU-2026:5038-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0python-Pillow11.3.0-160000.9.1SUSE-SU-2026:24656-1
SUSELinux Enterprise Server for NVIDIA 16.1python-Pillow11.3.0-160100.3.1SUSE-SU-2026:24701-1
openSUSELeap 16.0python-Pillow11.3.0-160000.9.1openSUSE-SU-2026:22246-1
openSUSELeap 16.1python-Pillow11.3.0-160100.3.1openSUSE-SU-2026:22301-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's 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.

ProductPackageStateAdvisory
Red Hat AI Inference Server 3.5rhaii/vllm-cpu-rhel9:1793444554Fixed 2026-11-03RHSA-2026:94702
Red Hat AI Inference Server 3.5rhaii/vllm-rocm-rhel9:1793444456Fixed 2026-11-03RHSA-2026:94709
Red Hat AI Inference Server 3.5rhaii/model-opt-cuda-rhel9:1793444339Fixed 2026-11-03RHSA-2026:94715
Red Hat AI Inference Server 3.5rhaii/vllm-spyre-rhel9:1793444409Fixed 2026-11-03RHSA-2026:94717
Red Hat AI Inference Server 3.5rhaii/vllm-gaudi-rhel9:1793444510Fixed 2026-11-03RHSA-2026:94721
Red Hat AI Inference Server 3.5rhaii/vllm-cuda-rhel9:1793444600Fixed 2026-11-03RHSA-2026:94738
Exploit Intelligenceexploit-intelligence/vulnerability-analysis-rhel9Out of support scope
Lightspeed Corelightspeed-core/lightspeed-stack-rhel9Fix deferred
Lightspeed Corelightspeed-core/rag-tool-cpu-rhel9Fix deferred
Lightspeed Corelightspeed-core/rag-tool-cuda-12.9-rhel9Fix deferred
OpenShift Lightspeedopenshift-lightspeed/lightspeed-ocp-rag-rhel9Fix deferred
OpenShift Lightspeedopenshift-lightspeed/lightspeed-service-api-rhel9Fix deferred
OpenShift Lightspeedopenshift-lightspeed-tech-preview/lightspeed-rag-tool-rhel9Fix deferred
Red Hat AI Inference Serverrhaiis/model-opt-cuda-rhel9Fix deferred
Red Hat AI Inference Serverrhaiis/vllm-cpu-rhel9Fix deferred
Red Hat AI Inference Serverrhaiis/vllm-cuda-rhel9Fix deferred
Red Hat AI Inference Serverrhaiis/vllm-neuron-rhel9Fix deferred
Red Hat AI Inference Serverrhaiis/vllm-rocm-rhel9Fix deferred
Red Hat AI Inference Serverrhaiis/vllm-spyre-rhel9Fix deferred
Red Hat AI Inference Serverrhaiis/vllm-tpu-rhel9Fix deferred
70 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-112891.

References

Check your stackJSON