Heap-based buffer overflow in Pillow - CVE-2026-112393

 

Heap-based buffer overflow in Pillow - CVE-2026-112393

Published: November 3, 2026


Vulnerability identifier: #VU158904
CSH Severity: High
CVSS v4: 9.2 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-112393
CWE-ID: CWE-122
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to cause a denial of service and potentially execute arbitrary code.

The vulnerability exists due to a heap-based buffer overflow in Pillow's _tiffWriteProc function in src/libImaging/TiffDecode.c when saving a TIFF image through libtiff to a destination without a usable file descriptor, such as io.BytesIO. A remote attacker can supply a crafted single-band TIFF with an attacker-controlled out-of-line tag value to a service that opens and re-saves the image to trigger an undersized allocation and overwrite adjacent heap memory, causing a process crash or potentially executing arbitrary code.

The reported code-execution chain additionally requires addresses disclosed by a separate vulnerability.


Affected software

Pillow
Fedora
python-pillow

How to mitigate CVE-2026-112393

Install security update from vendor's website.

Pillow - update to 13.0.0
python-pillow - addressed in versions 11.3.0-14.fc43, 12.3.0-5.fc44, 12.3.0-5.fc45

External References

Related Security Bulletins