CVE-2026-42310: Pillow is a Python imaging library
CVE-2026-42310 is a medium-severity flaw (CVSS 5.5) affecting pillow. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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.
Why this priority
- No elevated risk signals yet
A fixed release or distro patch exists.
Risk facts
| CVSS score | 5.5 (Medium) |
| Attack vector | Local |
| Attack complexity | Low |
| Privileges needed | Low |
| User interaction | None |
| EPSS exploit chance | 0.2% (top 94%) |
| CISA exploited list | No |
| Weakness | CWE-835 |
| Published | 2026-05-09 |
| Last modified | 2026-07-24 |
Last updated 2026-07-24 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2026-42310?
pillow: upgrade to 12.2.0. Exact commands for each OS are on this page.
Is CVE-2026-42310 being exploited?
CVE-2026-42310 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2026-42310 affect?
CVE-2026-42310 affects pillow. Severity is medium (CVSS 5.5). 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
How urgent is CVE-2026-42310?
Priority 21/100. No elevated risk signals yet.
Software pages
Related CVEs
- CVE-2026-112402 HIGH 7.5 UPGRADE Pillow is a Python imaging library
- CVE-2026-112401 HIGH 7.5 UPGRADE Pillow is a Python imaging library
- CVE-2026-112400 HIGH 7.5 UPGRADE Pillow is a Python imaging library
- CVE-2026-112399 HIGH 7.5 UPGRADE Pillow is a Python imaging library
- CVE-2026-112398 CRITICAL 9.8 UPGRADE Pillow is a Python imaging library