CVSS 4.0
8.6 highCVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:NHigh (8.6) in python pillow. EPSS 0.1% estimated probability of exploitation activity in the next 30 days. Fixed in pillow 12.2.0.
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:NCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:Hpillow (PyPI): fixed in 12.2.0Explain CVE-2026-42311 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-42311?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-42311?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-42311 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.
From the NVD's CPE matches.
| Product | Affected |
|---|---|
| python:pillow | from 10.3.0 before 12.2.0 |
| Advisory | Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|---|
| GHSA-pwv6-vv43-88gr | PyPI | pillow | >=10.3.0 <12.2.0 | 12.2.0 |
| PYSEC-2026-2252 | PyPI | pillow | >=10.3.0 <12.2.0 | 12.2.0 |
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Debian | 13 | pillow | 11.1.0-5+deb13u3 | DEBIAN-CVE-2026-42311 DSA-6357-1 |
| Debian | 14 | pillow | 12.2.0-1 | DEBIAN-CVE-2026-42311 |
| Ubuntu | 22.04:LTS | pillow | 9.0.1-1ubuntu0.4 | USN-8399-1 |
| Ubuntu | 24.04:LTS | pillow | 10.2.0-1ubuntu1.2 | USN-8399-1 |
| Ubuntu | 25.10 | pillow | 11.3.0-1ubuntu1.3 | UBUNTU-CVE-2026-42311 USN-8399-1 |
| Ubuntu | 26.04:LTS | pillow | 12.1.1-2ubuntu1.2 | UBUNTU-CVE-2026-42311 USN-8399-1 |
| Ubuntu | Pro:20.04:LTS | pillow-python2 | no fix listed | UBUNTU-CVE-2026-42311 |
| SUSE | Linux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0 | python-Pillow | 11.3.0-160000.6.1 | SUSE-SU-2026:22626-1 |
| openSUSE | Leap 16.0 | python-Pillow | 11.3.0-160000.6.1 | openSUSE-SU-2026:21296-1 |
| openSUSE | Tumbleweed | python-Pillow | 12.3.0-1.1 | openSUSE-SU-2026:11261-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 rates this Important.
This is an Important severity flaw in Pillow, a Python imaging library, that could lead to arbitrary code execution. The vulnerability requires a user to process a specially crafted malicious PSD file, which could result in memory corruption and allow an attacker to execute arbitrary code. Red Hat products that process untrusted image files using Pillow are at risk if they do not adequately sanitize input or operate in a sandboxed environment.
To mitigate this vulnerability, users should avoid processing untrusted or suspicious PSD image files with applications that utilize the Pillow library. Implementing strict input validation and sanitization for image uploads and processing workflows can reduce the risk. Additionally, running applications that process untrusted content within a sandboxed environment can limit the potential impact of successful exploitation.
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat AI Inference Server 3.2 | rhaiis/model-opt-cuda-rhel9:1787772157 | Fixed 2026-08-31 | RHSA-2026:61628 |
| Red Hat AI Inference Server 3.3 | rhaiis/model-opt-cuda-rhel9:1778244559 | Fixed 2026-05-11 | RHSA-2026:16008 |
| Red Hat AI Inference Server 3.3 | rhaiis/vllm-rocm-rhel9:1778244531 | Fixed 2026-05-11 | RHSA-2026:16009 |
| Red Hat AI Inference Server 3.3 | rhaiis/vllm-cuda-rhel9:1778274666 | Fixed 2026-05-11 | RHSA-2026:16030 |
| Red Hat AI Inference Server 3.4 | rhaii/vllm-spyre-rhel9:1787151840 | Fixed 2026-08-20 | RHSA-2026:57387 |
| Red Hat AI Inference Server 3.4 | rhaii/vllm-spyre-rhel9:1789681201 | Fixed 2026-09-21 | RHSA-2026:69464 |
| Red Hat AI Inference Server 3.4 | rhaii/vllm-spyre-rhel9:1790076141 | Fixed 2026-09-23 | RHSA-2026:70969 |
| Red Hat OpenShift AI 3.4 | rhoai/odh-automl-rhel9:1786612415 | Fixed 2026-08-27 | RHSA-2026:60520 |
| Red Hat OpenShift AI 3.4 | rhoai/odh-autorag-rhel9:1786612637 | Fixed 2026-08-27 | RHSA-2026:60520 |
| Red Hat OpenShift AI 3.4 | rhoai/odh-openvino-model-server-rhel9:1787303251 | Fixed 2026-08-27 | RHSA-2026:60520 |
| Exploit Intelligence | exploit-intelligence-tech-preview/vulnerability-analysis-rhel9 | Will not fix | |
| Lightspeed Core | lightspeed-core/lightspeed-stack-rhel9 | Not affected | |
| OpenShift Lightspeed | openshift-lightspeed/lightspeed-ocp-rag-rhel9 | Affected | |
| OpenShift Lightspeed | openshift-lightspeed/lightspeed-service-api-rhel9 | Affected | |
| OpenShift Lightspeed | openshift-lightspeed-tech-preview/lightspeed-rag-tool-rhel9 | Not affected | |
| Red Hat AI Inference Server | rhaii/model-opt-cuda-rhel9 | Not affected | |
| Red Hat AI Inference Server | rhaiis/vllm-cpu-rhel9 | Will not fix | |
| Red Hat AI Inference Server | rhaiis/vllm-neuron-rhel9 | Will not fix | |
| Red Hat AI Inference Server | rhaiis/vllm-spyre-rhel9 | Will not fix | |
| Red Hat AI Inference Server | rhaiis/vllm-tpu-rhel9 | Will not fix | |
| 63 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-42311.
The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.