A AegiFlow
MEDIUMCVSS 5.1EPSS 0.2%

CVE-2026-42309

CVE-2026-42309 updated by NVD

Published
2026-05-04
Modified
2026-10-19
EPSS percentile
7%
Sources
github-advisory, nvd

Summary

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.

Affected packages

EcosystemPackageAffected versionsFixed versions
PyPIpillow—12.2.0

Remediation: Upgrade to 12.2.0 or later.

References

Includes data from the GitHub Advisory Database, licensed under CC-BY 4.0.

Includes data from the National Vulnerability Database (NIST). NVD data is in the public domain; this page is not endorsed by NIST.

CVE® is a registered trademark of The MITRE Corporation. CVE content reproduced under the CVE Terms of Use; copyright designation © MITRE.

EPSS scores provided by the FIRST.org Exploit Prediction Scoring System.