Back to list

Pillow has a PDF Parsing Trailer Infinite Loop (DoS) — CVE-2026-42310

GitHub · GitHub · CVE-2026-42310

ID
CVE-2026-42310
Date
Updated
Activity
Source
GitHub
Vendor
GitHub
Threat
medium
CVSS
5.1
EPSS
0.00014

Summary

### Impact An attacker can supply a malicious PDF that causes the process to hang indefinitely, consuming 100% CPU and making the application unresponsive. ### Patches Patched version: 12.2.0. PdfParser (introduced in Pillow 4.2.0) follows Prev pointers in PDF trailers to read cross-reference sections. If a trailer's Prev pointer references an offset that has already been processed — either pointing to itself or…

Product

pip: pillow

What to do

General, cautious steps (verify details in the official source):

  • Review exposure and plan remediation based on risk and environment.
  • Identify affected product versions in your inventory and verify whether you are impacted.
  • Apply vendor patches/updates or recommended mitigations as soon as available.
  • Read the official advisory for exact affected versions and remediation steps.

Official advisory

Related advisories