Heap-based buffer overflow in Pillow - #VU127174

 

Heap-based buffer overflow in Pillow - #VU127174

Published: April 23, 2026


Vulnerability identifier: #VU127174
CSH Severity: Medium
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:U/U:Green
CVE-ID: N/A
CWE-ID: CWE-122
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: Alex Clark and Contributors
Affected software:
Pillow

Detailed vulnerability description

The vulnerability allows a remote attacker to cause a denial of service.

The vulnerability exists due to a heap-based buffer overflow in coordinate-processing APIs such as ImagePath.Path, ImageDraw.ImageDraw.polygon, and ImageDraw.ImageDraw.line when processing nested list coordinates. A remote attacker can pass nested lists as coordinates to cause a denial of service.

The issue was introduced in Pillow 11.2.1.


Remediation

Install security update from vendor's website.

Sources