CVE-2026-42311: Pillow is a Python imaging library
CVE-2026-42311 is a high-severity flaw (CVSS 7.8) 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 10.3.0 to before version 12.2.0, processing a malicious PSD file could lead to memory corruption, potentially resulting in a crash or arbitrary code execution. This issue has been patched in version 12.2.0.
Why this priority
- High severity
A fixed release or distro patch exists.
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-42311?
pillow: upgrade to 12.2.0. Exact commands for each OS are on this page.
Is CVE-2026-42311 being exploited?
CVE-2026-42311 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-42311 affect?
CVE-2026-42311 affects pillow. Severity is high (CVSS 7.8). Pillow is a Python imaging library. From version 10.3.0 to before version 12.2.0, processing a malicious PSD file could lead to memory corruption, potentially resulting in a crash or arbitrary code execution. This issue has been patched in
How urgent is CVE-2026-42311?
Priority 28/100. High severity
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