NULL pointer dereference in Pillow - CVE-2026-112392

 

NULL pointer dereference in Pillow - CVE-2026-112392

Published: November 3, 2026


Vulnerability identifier: #VU158890
CSH Severity: Medium
CVSS v4: 8.7 [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]
CVE-ID: CVE-2026-112392
CWE-ID: CWE-476
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to cause a denial of service by crashing the Python process using Pillow.

The vulnerability exists due to a null pointer dereference in ImagingExpand() in src/libImaging/Filter.c when padding an image with zero width or height before applying a median, minimum, maximum or rank filter. A remote attacker can supply crop coordinates with x0 == x1 or y0 == y1, or upload a crafted multi-page TIFF whose second image directory declares ImageLength = 0, to crash an application that processes the resulting empty image with one of these filters.


Affected software

Pillow

How to mitigate CVE-2026-112392

Install security update from vendor's website.

Pillow - update to 13.0.0

External References

Related Security Bulletins