CVE-2026-42309: Pillow is a Python imaging library
CVE-2026-42309 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 11.2.1 to before version 12.2.0, passing nested lists as coordinates to APIs that accept coordinates such as ImagePath.Path, ImageDraw.ImageDraw.polygon and ImageDraw.ImageDraw.line could cause a heap buffer overflow, as nested lists were recursively unpacked beyond the allocated buffer. Coordinate lists are now validated to contain exactly two numeric coordinates. This issue has been patched in ve
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.1% (top 97%) |
| CISA exploited list | No |
| Weakness | CWE-122 |
| 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-42309?
pillow: upgrade to 12.2.0. Exact commands for each OS are on this page.
Is CVE-2026-42309 being exploited?
CVE-2026-42309 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-42309 affect?
CVE-2026-42309 affects pillow. Severity is medium (CVSS 5.5). Pillow is a Python imaging library. From version 11.2.1 to before version 12.2.0, passing nested lists as coordinates to APIs that accept coordinates such as ImagePath.Path, ImageDraw.ImageDraw.polygon and ImageDraw.ImageDraw.line could cau
How urgent is CVE-2026-42309?
Priority 20/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