cve.bz

CVE-2026-40192 python pillow: Uncontrolled Resource Consumption

8.7 highEPSS 0.7%Fix available

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

On this page
Pillow is a Python imaging library. Versions 10.3.0 through 12.1.1 did not limit the amount of GZIP-compressed data read when decoding a FITS image, making them vulnerable to decompression bomb attacks. A specially crafted FITS file could cause unbounded memory consumption, leading to denial of service (OOM crash or severe performance degradation). If users are unable to immediately upgrade, they should only open specific image formats, excluding FITS, as a workaround.

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.7% (unchanged from 0.7% a week ago; 0.9% 30 days ago) estimated probability of exploitation activity in the next 30 days; 54th percentile. Scored 2026-11-22. 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-04-16. 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-400 Uncontrolled Resource Consumption
CWE-770 Allocation of Resources Without Limits or Throttling
CWE-409 Improper Handling of Highly Compressed Data (Data Amplification)
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-40192 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-40192?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-40192?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-40192 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 10.3.0 before 12.2.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-whj4-6x5x-4v2jPyPIpillow>=10.3.0 <12.2.012.2.0
PYSEC-2026-2250PyPIpillow>=10.3.0 <12.2.012.2.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian13pillow11.1.0-5+deb13u2DEBIAN-CVE-2026-40192 DSA-6219-1
Debian14pillow12.2.0-1DEBIAN-CVE-2026-40192
Ubuntu25.10pillow11.3.0-1ubuntu1.2UBUNTU-CVE-2026-40192
Ubuntu26.04:LTSpillow12.1.1-2ubuntu1.1UBUNTU-CVE-2026-40192
Red Hatansible_automation_platform:2.5::el8automation-controller-venv-tower0:4.6.29-2.el8apRHSA-2026:24761
Red Hatansible_automation_platform:2.5::el8automation-gateway-proxy-server0:2.5.10-6.el8apRHSA-2026:24761
Red Hatansible_automation_platform:2.5::el8automation-gateway-server0:2.5.20260422-3.el8apRHSA-2026:24761
Red Hatansible_automation_platform:2.5::el8python3.12-pillow0:12.2.0-1.el8apRHSA-2026:24761
Red Hatansible_automation_platform:2.5::el8, ansible_automation_platform_developer:2.5::el8, ansible_automation_platform_inside:2.5::el8python3.12-click0:8.3.3-1.el8apRHSA-2026:24761
Red Hatansible_automation_platform:2.5::el8, ansible_automation_platform_developer:2.5::el8, ansible_automation_platform_inside:2.5::el8python3.12-cryptography0:46.0.7-1.el8apRHSA-2026:24761
Red Hatansible_automation_platform:2.5::el8, ansible_automation_platform_developer:2.5::el8, ansible_automation_platform_inside:2.5::el8receptor0:1.6.5-1.el8apRHSA-2026:24761
Red Hatansible_automation_platform:2.5::el9automation-controller-venv-tower0:4.6.29-2.el9apRHSA-2026:24761
Red Hatansible_automation_platform:2.5::el9automation-gateway-proxy-server0:2.6.14-3.el9apRHSA-2026:24761
Red Hatansible_automation_platform:2.5::el9automation-gateway-server0:2.5.20260422-3.el9apRHSA-2026:24761
Red Hatansible_automation_platform:2.5::el9python3.12-pillow0:12.2.0-1.el9apRHSA-2026:24761
Red Hatansible_automation_platform:2.5::el9, ansible_automation_platform_developer:2.5::el9, ansible_automation_platform_inside:2.5::el9python3.12-click0:8.3.3-1.el9apRHSA-2026:24761
37 more for Red Hat in the JSON and on Red Hat's page.
openSUSELeap 16.0python-Pillow11.3.0-160000.4.1openSUSE-SU-2026:20617-1
openSUSETumbleweedpython-Pillow12.2.0-2.1openSUSE-SU-2026:10575-1

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

Red Hat

Red Hat rates this Important.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
Red Hat Ansible Automation Platform 2.5 for RHEL 8python3.12-pillow-0:12.2.0-1.el8apFixed 2026-06-09RHSA-2026:24761
Red Hat Ansible Automation Platform 2.5 for RHEL 9python3.12-pillow-0:12.2.0-1.el9apFixed 2026-06-09RHSA-2026:24761
Red Hat Ansible Automation Platform 2.6 for RHEL 9python3.12-pillow-0:12.2.0-1.el9apFixed 2026-06-09RHSA-2026:24762
Red Hat Satellite 6.16 for RHEL 8python-pillow-0:12.2.0-1.el8pcFixed 2026-06-18RHSA-2026:27076
Red Hat Satellite 6.16 for RHEL 9python-pillow-0:12.2.0-1.el9pcFixed 2026-06-18RHSA-2026:27076
Red Hat Satellite 6.17 for RHEL 9python-pillow-0:12.2.0-1.el9pcFixed 2026-07-01RHSA-2026:34366
Red Hat Satellite 6.18 for RHEL 9python3.12-pillow-0:12.2.0-1.el9pcFixed 2026-07-01RHSA-2026:34368
Red Hat Satellite 6.19 for RHEL 9python3.12-pillow-0:12.2.0-1.el9pcFixed 2026-07-01RHSA-2026:34365
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
Lightspeed Corelightspeed-core/rag-tool-rhel9Affected
OpenShift Lightspeedopenshift-lightspeed/lightspeed-ocp-rag-rhel9Not affected
OpenShift Lightspeedopenshift-lightspeed/lightspeed-service-api-rhel9Affected
OpenShift Lightspeedopenshift-lightspeed-tech-preview/lightspeed-rag-tool-rhel9Affected
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-tpu-rhel9Will not fix
Red Hat Ansible Automation Platform 2ansible-automation-platform-25/lightspeed-chatbot-rhel8Will not fix
Red Hat Ansible Automation Platform 2python-pillowNot affected
Red Hat Enterprise Linux 7python-pillowOut of support scope
54 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-40192.

Attack patterns (CAPEC)

  • CAPEC-147 XML Ping of the Death Likelihood: Low · Severity: Medium
  • CAPEC-227 Sustained Client Engagement
  • CAPEC-492 Regular Expression Exponential Blowup

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