BreachSpiderVerified, not vibes

CVE-2026-42310 in Python Pillow

Medium 5.5

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.

Affects 1 product from 1 vendor. Facts below cite their sources.

CVSS 3.15.5
CVSS v45.1
EPSS0.2%
EPSS percentile4th
FixUnknown

Requires local access, low complexity, low privileges required, no user interaction needed, impact contained to the vulnerable component, no confidentiality impact, no integrity impact, full availability impact.

Affected products and versions

VendorProductAffected versions
Python Pillow ≥ 4.2.0, < 12.2.0

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

No official vendor advisory link on record. See the CVE record.

Vendor PSIRT: [email protected]

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official description

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.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2026-42310
BreachSpider IDBS-2026-GLOBAL-270260-M
CVSS vectorCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Published2026-05-09
Last modified2026-07-24
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-835: CWE-835

Analysis AI-written, not human-reviewed

A vulnerability in Pillow versions 4.2.0 to 12.1.9 allows an attacker to supply a malicious PDF, causing the process to hang indefinitely and consume 100% CPU, making the application unresponsive.

An attacker can exploit this vulnerability by providing a specially crafted PDF file to the Pillow library, which will lead to a denial of service condition.

Questions

What is CVE-2026-42310?

A vulnerability in Pillow versions 4.2.0 to 12.1.9 allows an attacker to supply a malicious PDF, causing the process to hang indefinitely and consume 100% CPU, making the application unresponsive.

What is the CVSS score for CVE-2026-42310?

CVE-2026-42310 has CVSS 5.5 (Medium). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H. EPSS: 0.2%.

Is CVE-2026-42310 actively exploited?

No confirmed active exploitation of CVE-2026-42310 as of 2026-07-25.

How do I remediate CVE-2026-42310?

Priority: HIGH. PSIRT: [email protected]

What systems are affected by CVE-2026-42310?

CVE-2026-42310 affects Python Pillow.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Python","product":"Pillow","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-07-24.