CVE-2026-42310 MEDIUM

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

Vendor Python-Pillow
Product Pillow
Weakness CWE-835
Published May 9, 2026
Last update May 12, 2026

CVSS base score

5.1/10
Attack vector Local
Attack complexity Low
Privileges required None
User interaction None
Confidentiality
Integrity

CVSS vector

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

What the vulnerability does

01Description

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.

Key dates

02Disclosure timeline

May 9, 2026 CVE published
May 12, 2026 Record updated