VDB

CVE-2026-42309

CVE-2026-42309 PUBLISHED CVSS 5.1 MEDIUM

Pillow: Heap buffer overflow with nested list coordinates

Reported by github_m · Published May 9, 2026

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
open-webuiWolfi0.11.0-r0
open-webuiChainguard0.11.0-r0
kubeflow-pipelines-visualization-serverChainguard2.16.1-r0
kubeflow-pipelines-visualization-serverWolfi2.16.1-r0

Risk scores

CVSS 4.0
5.1
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

Affected products

VendorProductVersions
python-pillowPillow>= 11.2.1, < 12.2.0
wolfiopen-webui0
chainguardopen-webui0
chainguardkubeflow-pipelines-visualization-server0
wolfikubeflow-pipelines-visualization-server0
python-pillowPillow11.2.1
PyPIPillow11.2.1
wolfisuperset-6.00
python-pillowPillow
wolfimlflow0
chainguardsuperset-6.00
chainguardmlflow0

Timeline

  • May 4, 2026 CVE Published
  • May 9, 2026 Security Advisory (2 in total, the first dated here)
  • May 18, 2026 EPSS Score (26 in total, the first dated here)
  • Aug 4, 2026 Coalition ESS Score
  • Aug 12, 2026 Distribution Patch

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2026-42309
vulnetix vdb fixes CVE-2026-42309

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-42309/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›