cve.bz

CVE-2026-112899

6.3 mediumEPSS 0.5%Fix available

Medium (6.3) in python-pillow 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. In versions 2.3.0 through 12.3.0, EPS rendering does not validate the scaled image dimensions before invoking Ghostscript. Applications that process untrusted EPS or PostScript files using an application-selected scale greater than one can incur excessive Ghostscript CPU and temporary disk consumption. In versions with decompression-bomb protection, the scaled output is checked only after Ghostscript has completed rendering, allowing resource consumption beyond the configured pixel limit. The amplification depends on the scale selected by the application, not an attacker-controlled scale value. This issue is fixed in version 13.0.0.

Severity

CVSS 4.0

6.3 medium
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
EPSS
0.5% estimated probability of exploitation activity in the next 30 days; 46th percentile. Scored 2026-11-10. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: partial, assessed 2026-11-09. 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-770 Allocation of Resources Without Limits or Throttling
Published
Modified
NVD analysis
Under analysis
Record from
the NVD, synced

Ask an AI about this CVE

Show the promptExplain CVE-2026-112899 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-112899?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-112899?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-112899 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 CNA's record in the CVE List.

ProductAffected
python-pillow Pillow>= 2.5.0, < 13.0.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-vx6w-vv9f-6gvgPyPIpillow>=2.3.0 <13.0.013.0.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14pillowno fix listedDEBIAN-CVE-2026-112899
Ubuntu22.04:LTS, 24.04:LTS, 26.04:LTS and 4 morepillowno fix listedUBUNTU-CVE-2026-112899
UbuntuPro:20.04:LTSpillow, pillow-python2no fix listedUBUNTU-CVE-2026-112899
SUSELinux Enterprise Module for Package Hub 15 SP7python-Pillow7.2.0-150300.3.33.1SUSE-SU-2026:5038-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.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This vulnerability is rated as Moderate severity because it results in a denial of service through excessive CPU and storage consumption without compromising system confidentiality or integrity. In Red Hat environments, exploitation requires an application using the Pillow library to ingest untrusted Encapsulated PostScript (EPS) files and perform scaled rendering via Ghostscript. Because the risk is confined to availability exhaustion and does not allow remote code execution or privilege escalation, the blast radius is limited.

Red Hat's mitigation

Operational controls can mitigate exposure to this vulnerability:

1. Restrict file formats: Configure applications using Pillow to validate and accept only required raster formats (such as PNG or JPEG), preventing untrusted EPS files from being processed.

2. Remove the Ghostscript rendering backend: If PostScript or EPS rendering is not required, remove the Ghostscript package to prevent Pillow from delegating rendering to it:

# dnf remove ghostscript

3. Sandbox and resource limits: Run image processing workloads in containerized or sandboxed environments with strict disk quota and CPU limits to prevent excessive temporary file generation from exhausting host resources.

Caveats: Removing Ghostscript will disable EPS and PostScript rendering capabilities across the system for any applications that depend on Ghostscript.

--- CME Mitigation Guidance (2026-11-04) ---

Disclaimer: The following mitigation solutions are provided as a courtesy, pending the application of an official patch. This content was generated utilizing AI tools in conjunction with data from https://cmetaxonomy.org. Customers are advised to independently evaluate and test these temporary mitigations within their own infrastructure.

The highest-value action is to enforce decompression bomb limit checks against the final scaled image dimensions before delegating EPS rendering to Ghostscript in Pillow: upgrade to Pillow 13.0.0+ (or the corresponding fixed Red Hat builds), which validate decompression bomb limits against the final scaled dimensions rather than unscaled dimensions before invoking Ghostscript, closing crafted EPS image file. Until patched, this is a concern on Applications using Pillow to load untrusted EPS files and perform scaled rendering with Ghostscript installed, so Restrict accepted image formats to required raster types such as PNG or JPEG, remove the ghostscript package if PostScript rendering is not needed, and isolate image processing with strict disk quotas. As a compensating measure, Enforce process resource limits on CPU time, process memory, and generated file sizes using ulimit or prlimit and Constrain CPU, memory, and I/O consumption using cgroups v2 resource limits for containerized image processing workloads. These controls limit blast radius and contain exploitation, but they do not fix the underlying decompression bomb limit validation defect — apply the upstream patch to fully remediate.

Highest-impact CME: CME-1311 Input Size and Quantity Bounds Enforcement (high)

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/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 Serverrhaii-fast/model-opt-cuda-rhel9Fix deferred
Red Hat AI Inference Serverrhaii-fast/vllm-cpu-rhel9Fix deferred
Red Hat AI Inference Serverrhaii-fast/vllm-cuda-rhel9Fix deferred
Red Hat AI Inference Serverrhaii-fast/vllm-gaudi-rhel9Fix deferred
Red Hat AI Inference Serverrhaii-fast/vllm-neuron-rhel9Fix deferred
Red Hat AI Inference Serverrhaii-fast/vllm-omni-cuda-rhel9Fix deferred
Red Hat AI Inference Serverrhaii-fast/vllm-rocm-rhel9Fix deferred
Red Hat AI Inference Serverrhaii-fast/vllm-spyre-rhel9Fix deferred
73 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-112899.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-770 (20).

References

Check your stackJSON