Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. Pillow
  4. ›
  5. CVE-2026-42310

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

May 4, 2026

An attacker can supply a malicious PDF that causes the process to hang indefinitely, consuming 100% CPU and making the application unresponsive.

References

  • github.com/advisories/GHSA-r73j-pqj5-w3x7
  • github.com/python-pillow/Pillow
  • github.com/python-pillow/Pillow/pull/9519
  • github.com/python-pillow/Pillow/security/advisories/GHSA-r73j-pqj5-w3x7
  • nvd.nist.gov/vuln/detail/CVE-2026-42310

Code Behaviors & Features

Detect and mitigate CVE-2026-42310 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 4.2.0 before 12.2.0

Fixed versions

  • 12.2.0

Solution

Upgrade to version 12.2.0 or above.

Impact 4 MEDIUM

CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Learn more about CVSS

Weakness

  • CWE-835: Loop with Unreachable Exit Condition ('Infinite Loop')

Source file

pypi/Pillow/CVE-2026-42310.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 09 May 2026 12:18:19 +0000.