CVE-2026-42310
Medium
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.
SeverityMedium
CVSS5.5
Exploit probability—
Product
Python Pillow
PublishedMay 9, 2026
First seenMay 9, 2026
Weakness typeCWE-835CWE-835
How to fix
Update
- python pillow12.2.0 or later
- pillow12.2.0 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| python pillow | 4.2.0 ≤ v < 12.2.0 | 12.2.0 |
| pillowPyPI | 4.2.0 ≤ v < 12.2.0 | 12.2.0 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
In the Intelligence 360 plan
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.