cve.bz

CVE-2026-42310 python pillow: Infinite Loop

5.1 mediumEPSS 0.2%Fix available

Medium (5.1) in python pillow. EPSS 0.2% 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. From version 4.2.0 to before version 12.2.0, an attacker can supply a malicious PDF that causes the process to hang indefinitely, consuming 100% CPU and making the application unresponsive. This issue has been patched in version 12.2.0.

Severity

CVSS 4.0

5.1 medium
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N

CVSS 3.1

5.5 medium
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
EPSS
0.2% (unchanged from 0.2% a week ago; 0.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 7th 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: no · Technical impact: partial, assessed 2026-05-12. 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-835 Loop with Unreachable Exit Condition (Infinite Loop)
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-42310 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-42310?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-42310?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-42310 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 4.2.0 before 12.2.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-r73j-pqj5-w3x7PyPIpillow>=4.2.0 <12.2.012.2.0
PYSEC-2026-2874PyPIpillow>=4.2.0 <12.2.012.2.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12pillowno fix listedDEBIAN-CVE-2026-42310
Debian13pillow11.1.0-5+deb13u3DEBIAN-CVE-2026-42310 DSA-6357-1
Debian14pillow12.2.0-1DEBIAN-CVE-2026-42310
Ubuntu22.04:LTSpillow9.0.1-1ubuntu0.4UBUNTU-CVE-2026-42310 USN-8399-1 USN-9064-1
Ubuntu24.04:LTSpillow10.2.0-1ubuntu1.2UBUNTU-CVE-2026-42310 USN-8399-1 USN-9064-1
Ubuntu25.10pillow11.3.0-1ubuntu1.3UBUNTU-CVE-2026-42310 USN-8399-1
Ubuntu26.04:LTSpillow12.1.1-2ubuntu1.2UBUNTU-CVE-2026-42310 USN-8399-1 USN-9064-1
Ubuntu26.10pillow12.3.0-1ubuntu2USN-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+esm3UBUNTU-CVE-2026-42310 USN-9064-1
UbuntuPro:20.04:LTSpillow7.0.0-4ubuntu0.9+esm2UBUNTU-CVE-2026-42310 USN-9064-1
UbuntuPro:20.04:LTSpillow-python2no fix listedUBUNTU-CVE-2026-42310

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

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Red Hat AI Inference Server 3.3rhaiis/model-opt-cuda-rhel9:1778244559Fixed 2026-05-11RHSA-2026:16008
Red Hat AI Inference Server 3.3rhaiis/vllm-rocm-rhel9:1778244531Fixed 2026-05-11RHSA-2026:16009
Red Hat AI Inference Server 3.3rhaiis/vllm-cuda-rhel9:1778274666Fixed 2026-05-11RHSA-2026:16030
Red Hat AI Inference Server 3.4rhaii/vllm-spyre-rhel9:1787151840Fixed 2026-08-20RHSA-2026:57387
Exploit Intelligenceexploit-intelligence-tech-preview/vulnerability-analysis-rhel9Out of support scope
OpenShift Lightspeedopenshift-lightspeed/lightspeed-ocp-rag-rhel9Fix deferred
OpenShift Lightspeedopenshift-lightspeed/lightspeed-service-api-rhel9Fix deferred
Red Hat AI Inference Serverrhaiis/vllm-cpu-rhel9Fix deferred
Red Hat AI Inference Serverrhaiis/vllm-neuron-rhel9Fix deferred
Red Hat AI Inference Serverrhaiis/vllm-spyre-rhel9Fix deferred
Red Hat AI Inference Serverrhaiis/vllm-tpu-rhel9Fix deferred
Red Hat Ansible Automation Platform 2ansible-automation-platform-25/lightspeed-chatbot-rhel8Out of support scope
Red Hat Ansible Automation Platform 2ansible-automation-platform-26/hub-rhel9Fix deferred
Red Hat Ansible Automation Platform 2ansible-automation-platform-26/lightspeed-chatbot-rhel9Fix deferred
Red Hat Ansible Automation Platform 2ansible-automation-platform/automation-dashboard-rhel9Not affected
Red Hat Enterprise Linux AI (RHEL AI) 3rhelai3/bootc-aws-cuda-rhel9Fix deferred
Red Hat Enterprise Linux AI (RHEL AI) 3rhelai3/bootc-azure-cuda-rhel9Fix deferred
Red Hat Enterprise Linux AI (RHEL AI) 3rhelai3/bootc-azure-rocm-rhel9Fix deferred
Red Hat Enterprise Linux AI (RHEL AI) 3rhelai3/bootc-cuda-rhel9Fix deferred
Red Hat Enterprise Linux AI (RHEL AI) 3rhelai3/bootc-gcp-cuda-rhel9Fix deferred
35 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-42310.

References

Check your stackJSON