cve.bz

CVE-2026-59204 python pillow

8.7 highExploit referenceEPSS 0.4%Fix available

High (8.7) in python pillow. EPSS 0.4% estimated probability of exploitation activity in the next 30 days. Fixed in pillow 12.3.0.

On this page
Pillow is a Python imaging library. From 8.2.0 through 12.2.0, src/libImaging/Jpeg2KDecode.c accumulates total_component_width across every tile in a JPEG2000 image instead of recomputing it per tile, allowing a crafted tiled JPEG2000 file to force substantially higher transient memory usage and trigger out-of-memory failures during decoding. This issue is fixed in version 12.3.0.

Severity

CVSS 4.0

8.7 high
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/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.4% (unchanged from 0.4% a week ago; 0.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 33rd percentile. Scored 2026-11-17. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: yes · Technical impact: partial, assessed 2026-07-21. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-770 Allocation of Resources Without Limits or Throttling
CWE-789 Memory Allocation with Excessive Size Value
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-59204 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-59204?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-59204?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-59204 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 8.2.0 before 12.3.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-vjc4-5qp5-m44jPyPIpillow>=8.2.0 <12.3.012.3.0
PYSEC-2026-3496PyPIpillow>=8.2.0 <12.3.012.3.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13pillowno fix listedDEBIAN-CVE-2026-59204
Debian14pillow12.3.0-1DEBIAN-CVE-2026-59204
Ubuntu22.04:LTSpillow9.0.1-1ubuntu0.6UBUNTU-CVE-2026-59204 USN-8999-1
Ubuntu24.04:LTSpillow10.2.0-1ubuntu1.4UBUNTU-CVE-2026-59204 USN-8999-1
Ubuntu26.04:LTSpillow12.1.1-2ubuntu1.4UBUNTU-CVE-2026-59204 USN-8999-1
UbuntuPro:14.04:LTS, Pro:16.04:LTS, Pro:18.04:LTSpillowno fix listedUBUNTU-CVE-2026-59204
UbuntuPro:20.04:LTSpillow, pillow-python2no fix listedUBUNTU-CVE-2026-59204
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.25.1SUSE-SU-2026:3268-1
SUSELinux Enterprise Module for Package Hub 15 SP7python-Pillow7.2.0-150300.3.30.1SUSE-SU-2026:3084-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0python-Pillow11.3.0-160000.8.1SUSE-SU-2026:23217-1 SUSE-SU-2026:23228-1
openSUSELeap 16.0python-Pillow11.3.0-160000.8.1openSUSE-SU-2026:21544-1
openSUSETumbleweedpython-Pillow12.3.0-2.1openSUSE-SU-2026:11283-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 Important.

Red Hat's statement

The impact is limited to denial of service via excessive memory allocation. A crafted JPEG2000 file can trigger out-of-memory failures, but this does not lead to code execution or information disclosure.

Red Hat's mitigation

If the application does not need JPEG2000 support, block .jp2, .j2k, .jpf, and .jpx uploads at the input layer.

For services that do process JPEG2000, set memory limits on the process or container (LimitAS= in systemd, or memory limits in Kubernetes/Podman) so a crafted image can only crash the worker, not the whole host. Add automatic restarts (Restart=always in systemd, or container restart policies) so the service recovers from OOM kills without someone having to intervene.

ProductPackageStateAdvisory
Red Hat AI Inference Server 3.2rhaiis/vllm-cuda-rhel9:1787860580Fixed 2026-08-31RHSA-2026:61627
Red Hat AI Inference Server 3.2rhaiis/model-opt-cuda-rhel9:1787772157Fixed 2026-08-31RHSA-2026:61628
Red Hat AI Inference Server 3.2rhaiis/vllm-rocm-rhel9:1787884873Fixed 2026-08-31RHSA-2026:61629
Red Hat AI Inference Server 3.3rhaiis/model-opt-cuda-rhel9:1787601159Fixed 2026-08-25RHSA-2026:59518
Red Hat AI Inference Server 3.4rhaii/vllm-spyre-rhel9:1789681201Fixed 2026-09-21RHSA-2026:69464
Red Hat AI Inference Server 3.4rhaii/vllm-cpu-rhel9:1789681128Fixed 2026-09-21RHSA-2026:69466
Red Hat AI Inference Server 3.4rhaii/vllm-cuda-rhel9:1789681126Fixed 2026-09-21RHSA-2026:69467
Red Hat AI Inference Server 3.4rhaii/model-opt-cuda-rhel9:1789681126Fixed 2026-09-21RHSA-2026:69468
Red Hat AI Inference Server 3.4rhaii/vllm-rocm-rhel9:1789681126Fixed 2026-09-21RHSA-2026:69469
Red Hat AI Inference Server 3.4rhaii/vllm-cpu-rhel9:1790075793Fixed 2026-09-23RHSA-2026:70965
Exploit Intelligenceexploit-intelligence-tech-preview/vulnerability-analysis-rhel9Fix deferred
Lightspeed Corelightspeed-core/lightspeed-stack-rhel9Affected
Lightspeed Corelightspeed-core/rag-tool-cpu-rhel9Affected
Lightspeed Corelightspeed-core/rag-tool-cuda-12.9-rhel9Affected
OpenShift Lightspeedopenshift-lightspeed/lightspeed-ocp-rag-rhel9Not affected
OpenShift Lightspeedopenshift-lightspeed/lightspeed-service-api-rhel9Affected
OpenShift Lightspeedopenshift-lightspeed-tech-preview/lightspeed-rag-tool-rhel9Not affected
Red Hat AI Inference Serverrhaiis/vllm-cpu-rhel9Will not fix
Red Hat AI Inference Serverrhaiis/vllm-neuron-rhel9Will not fix
Red Hat AI Inference Serverrhaiis/vllm-spyre-rhel9Affected
79 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-59204.

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