Skip to main content
CVE-2026-42309VulnerabilityPublished Updated

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

0
Compare
Authoritative record:CVE-2026-42309· Medium 5.1

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

CVSS 4.0 base score
5.1Medium
How severe the flaw is on the 0–10 CVSS scale.
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:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 9 May 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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).

Affected software

ProductAffectedFixed in
Ubuntu 26.04 LTSpillowpkg:deb/ubuntu/pillow?arch=source&distro=resoluteOther threatsAffected
  • <12.1.1-2ubuntu1.2
Fixed in
  • 12.1.1-2ubuntu1.2
Ubuntu 25.10pillowpkg:deb/ubuntu/pillow?arch=source&distro=questingOther threatsAffected
  • <11.3.0-1ubuntu1.3
Fixed in
  • 11.3.0-1ubuntu1.3

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

Community reviews

Loading reviews…