~ / search / GHSA-5xmw-vc9v-4wf2

GHSA-5xmw-vc9v-4wf2

Pillow has a heap buffer overflow with nested list coordinates

Source: GitHub Advisory Database (reviewed) Moderate CVE-2026-42309

Packages

EcosystemPackageAffectedFixed in
PyPI pillow >= 11.2.1, < 12.2.0 12.2.0

Details

As written in the advisory (Markdown source, shown as plain text).

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.

References

External links from the advisory. They lead to third-party sites.