{"id":"CVE-2026-42309","published":"2026-05-09T04:08:10Z","modified":"2026-05-11T14:48:18Z","title":"Pillow: Heap buffer overflow with nested list coordinates","vendor":"python-pillow","product":"Pillow","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.1,"severity":"MEDIUM","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00182,"percentile":0.04545,"provenance":"source"},"cwes":[{"id":"CWE-122","name":"Heap-based Buffer Overflow"}],"references":[{"url":"https://github.com/python-pillow/Pillow/security/advisories/GHSA-5xmw-vc9v-4wf2","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/python-pillow/Pillow/releases/tag/12.2.0","tags":["x_refsource_MISC"]}],"priority":{"score":4.5,"factors":[{"name":"EPSS percentile","points":0.91},{"name":"CVSS severity","points":3.57}]},"vendorSlug":"python-pillow","affectedVersions":[{"vendor":"python-pillow","product":"Pillow","versions":[">= 11.2.1, < 12.2.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-05-11T14:48:09.669871Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"pillow","vulnerableRanges":[">=11.2.1, <12.2.0"],"patched":["12.2.0"],"from":["GHSA-5xmw-vc9v-4wf2","PYSEC-2026-2251"],"provenance":"source"}],"summary":{"text":"Pillow, the Python imaging library, contains a heap buffer overflow in its coordinate handling for APIs such as ImagePath.Path, ImageDraw.polygon and ImageDraw.line, where nested lists passed as coordinates are recursively unpacked beyond the allocated buffer. An attacker with local access and no privileges, requiring no user interaction, can trigger the overflow by supplying nested-list coordinates to these APIs, which affects availability.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:21:44Z"},"euvd":{"id":"EUVD-2026-28901","exploited":false,"provenance":"source"}}