Advisory record · GHSA-r73j-pqj5-w3x7

Pillow has a PDF Parsing Trailer Infinite Loop (DoS)

CVSS 5.1 MediumEPSS 0.0017 · 6th percentile

Published by the GitHub Advisory Database at 4 May 2026, 20:19 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
pillowPyPI>=4.2.0, <12.2.012.2.0
Identifiers
GHSA-r73j-pqj5-w3x7 · BIT-pillow-2026-42310 · CVE-2026-42310 · PYSEC-2026-2874
Weakness (CWE)
CWE-835
Published
4 May 2026
Updated
10 Sept 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

Pillow versions 4.2.0 up to but not including 12.2.0 are affected by a flaw in the PDF parser. A attacker who supplies a malicious PDF file can cause the process to hang indefinitely at 100% CPU, making the application unresponsive. Upgrade to Pillow 12.2.0, which detects the cyclic trailer references and raises an error instead.

Written 4 Nov 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
5.1 Medium 4.0 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 CNA (GitHub_M)
  • CISA KEV Not listed.
  • EPSS 0.0017, the 6th percentile, on 15 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 23 Apr 2026, 15:11 UTC Published by the maintainers as a GitHub repository advisory
  2. 31 Oct 2026, 14:29 UTC First seen by agentprime
  3. 31 Oct 2026, 14:29 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.