CVE-2026-42310

Pillow: PDF Parsing Trailer Infinite Loop (DoS)

MEDIUM
5.5
CVSS Score
Published: May 9, 2026 at 04:10 AM UTC
Updated: July 24, 2026 at 09:20 PM UTC
2 products affected across 2 vendorsPillowPillow

Using Pillow by python-pillow?

Get instant alerts when new vulnerabilities affect Pillow - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

4.2.0 ≤ v < 12.2.0
Affected range stops below 12.2.0, so it looks safe — our inference, not a vendor statement
v < 12.2.0
Affected range stops below 12.2.0, so it looks safe — our inference, not a vendor statement

References (4)

x_refsource_CONFIRMPatchVendor Advisory
Source: cverecord
https://github.com/python-pillow/Pillow/security/advisories/GHSA-r73j-pqj5-w3x7
x_refsource_MISCIssue TrackingPatch
Source: cverecord
https://github.com/python-pillow/Pillow/pull/9519
x_refsource_MISCProductRelease Notes
Source: cverecord
https://github.com/python-pillow/Pillow/releases/tag/12.2.0

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-835

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card