{"schema":"threatline.record/2","record":{"id":"CVE-2026-42309","aliases":["BIT-pillow-2026-42309","GHSA-5xmw-vc9v-4wf2","PYSEC-2026-2251"],"summary":"Pillow has a heap buffer overflow with nested list coordinates","details":"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 was introduced in Pillow 11.2.1.","categories":["Libraries & packages"],"product":"pillow","vendor":"python-pillow","ecosystem":"pip","affected_ranges":[{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-5xmw-vc9v-4wf2","source_modified_at":"2026-10-19T19:52:26Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"pip","name":"pillow"},"range":">= 11.2.1, < 12.2.0"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-42309","source_modified_at":"2026-05-11T14:48:18.204Z","fetched_at":"2026-10-23T18:45:31.882637Z","product":"Pillow","vendor":"python-pillow","versions":[{"version":">= 11.2.1, < 12.2.0","status":"affected"}],"defaultStatus":null},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-5xmw-vc9v-4wf2","source_modified_at":"2026-10-19T20:00:04.709097863Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"PyPI","name":"pillow","purl":"pkg:pypi/pillow"},"ranges":[{"events":[{"introduced":"11.2.1"},{"fixed":"12.2.0"}],"type":"ECOSYSTEM"}],"versions":["11.2.1","11.3.0","12.0.0","12.1.0","12.1.1"]}],"fixed_versions":[{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-5xmw-vc9v-4wf2","source_modified_at":"2026-10-19T19:52:26Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"pip","name":"pillow"},"version":"12.2.0"},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-5xmw-vc9v-4wf2","source_modified_at":"2026-10-19T20:00:04.709097863Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"PyPI","name":"pillow","purl":"pkg:pypi/pillow"},"version":"12.2.0"}],"cvss":5.1,"severity":"Medium","kev":{"listed":false},"epss":{"probability":0.00182,"percentile":0.07347,"score_date":"2026-10-23"},"published_at":"2026-05-09T04:08:10.517Z","modified_at":"2026-10-19T20:00:04.709097863Z","provenance":[{"source":"GitHub Advisory Database","url":"https://github.com/advisories/GHSA-5xmw-vc9v-4wf2","fetched_at":"2026-10-23T18:42:43.628194Z","source_modified_at":"2026-10-19T19:52:26Z"},{"source":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-42309","fetched_at":"2026-10-23T18:45:31.882637Z","source_modified_at":"2026-05-11T14:48:18.204Z"},{"source":"OSV","url":"https://osv.dev/vulnerability/GHSA-5xmw-vc9v-4wf2","fetched_at":"2026-10-23T18:42:43.628194Z","source_modified_at":"2026-10-19T20:00:04.709097863Z"},{"source":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-42309","fetched_at":"2026-10-23T18:42:43.628194Z","source_modified_at":"2026-10-23"}],"sources":["GitHub Advisory Database","CVE List","OSV","EPSS"],"references":[{"source":"CVE List","url":"https://github.com/python-pillow/Pillow/security/advisories/GHSA-5xmw-vc9v-4wf2","tags":["x_refsource_CONFIRM"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-42309","source":"GitHub Advisory Database"},{"source":"CVE List","url":"https://github.com/python-pillow/Pillow/releases/tag/12.2.0","tags":["x_refsource_MISC"]},{"url":"https://github.com/python-pillow/Pillow/commit/cf6de8ca9b23e714aa5310e1c791eda66fc0b670","source":"GitHub Advisory Database"},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2026-2251.yaml","source":"GitHub Advisory Database"},{"url":"https://github.com/designcomputer/mysql_mcp_server/commit/a96549f4a4d65443fd6e9c7f2324fba9a5c80a82","source":"GitHub Advisory Database"},{"url":"https://github.com/advisories/GHSA-5xmw-vc9v-4wf2","source":"GitHub Advisory Database"}],"locations":[],"motoko_assessment":{"status":"requires_architecture_review","automatic_remediation":false},"cve_state":"PUBLISHED","ssvc":{"exploitation":"none","automatable":"no","technical_impact":"partial","assessed_at":"2026-05-11T14:48:09.669871Z"},"classification":{"method":"product-first software-layer rules","rules_version":"2.1","matched_on":"product","confidence":"heuristic","reviewed":false},"change_timestamp":"2026-10-19T20:00:04.709097863Z","content_hash":"535589b317ddf5d0993c7230f612d8fa5406e8c14ccccc13afae49f25a8f4825"}}
