{"cve":"CVE-2026-42309","nvd":{"published":"2026-05-09T06:16:10.073","modified":"2026-07-24T21:10:00.143","status":"Analyzed","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.","cvss_v4":{"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","score":5.1},"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5},"cwes":["CWE-122"],"references":["https://github.com/python-pillow/Pillow/releases/tag/12.2.0","https://github.com/python-pillow/Pillow/security/advisories/GHSA-5xmw-vc9v-4wf2"],"products":["python:pillow"],"source":"nvd","synced_at":"2026-10-19T22:33:55.586217763+00:00"},"epss":{"cve":"CVE-2026-42309","score":0.00133,"percentile":0.02788,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-5xmw-vc9v-4wf2","url":"https://osv.dev/vulnerability/GHSA-5xmw-vc9v-4wf2","summary":"Pillow has a heap buffer overflow with nested list coordinates","modified":"2026-10-19T20:00:04.709097863Z","packages":[{"ecosystem":"PyPI","name":"pillow","purl":"pkg:pypi/pillow","ranges":[">=11.2.1 <12.2.0"],"fixed":["12.2.0"]}]},{"id":"PYSEC-2026-2251","url":"https://osv.dev/vulnerability/PYSEC-2026-2251","summary":"","modified":"2026-07-13T07:26:28.768890335Z","packages":[{"ecosystem":"PyPI","name":"pillow","purl":"pkg:pypi/pillow","ranges":[">=11.2.1 <12.2.0"],"fixed":["12.2.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}