CVE-2026-96778 Pillow - Buffer Overflow

Pillow 9.4.0 to 13.0.0 contains a heap buffer overflow caused by jpeg_write_marker() writing beyond buffer limits in JpegEncode.c when processing JPEG COM comments with exact 65536-byte ICC profiles, letting attackers overwrite adjacent heap memory and potentially execute code, exploit requires crafted JPEG image with specific ICC profile and comment.

CVSS base score 7.7 /10
High
CISA KEV
Not listed
Public exploit
None known
Authentication
Not required
View the NVD record ↗

Details

Type
Buffer Overflow
Impact
Remote Code Execution, Denial Of Service
CVSS vector
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Published
21 October 2026
Updated
22 October 2026
Weakness
CWE-787

Vendor fix

Update to version 13.0.0 or later.

Patching closes this CVE. It does not tell you which of your systems run the affected version, or what else is exposed alongside them.

References

← All CVEs