Pillow: From version 11.2.1 to before version 12.2.0, passing nested lists as coordinates to APIs that accept
Affects pillowSource GCVE Database
Not known to be exploited · CVSS 5.1 Medium · fixed in 11.3.0-1ubuntu1.3 : update pillow when convenient.
Data as of 24 Nov 2026, 21:15 UTC
- EPSS
- 0.1% chance of exploitation in 30 days – higher than 2% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 11.3.0-1ubuntu1.3, 12.1.1-2ubuntu1.2
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 9 May 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 24 Nov 2026.
What to do
Upgrade the Ubuntu pillow to 11.3.0-1ubuntu1.3 (package) or 12.1.1-2ubuntu1.2 (package).
Patches and advisories
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 26.04 LTSpillowpkg:deb/ubuntu/pillow?arch=source&distro=resoluteOther threats | Affected
| Fixed in
|
Ubuntu 25.10pillowpkg:deb/ubuntu/pillow?arch=source&distro=questingOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
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 version 12.2.0.
References
- ubuntu.com/security/CVE-2026-42309 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2026-42309 (opens in a new tab)
- github.com/python-pillow/Pillow/security/advisories/GHSA-5xmw-vc9v-4wf2 (opens in a new tab)
- github.com/python-pillow/Pillow/releases/tag/12.2.0 (opens in a new tab)
- ubuntu.com/security/notices/USN-8399-1 (opens in a new tab)