Uncontrolled Memory Allocation in Pillow - CVE-2026-112399

 

Uncontrolled Memory Allocation in Pillow - CVE-2026-112399

Published: November 3, 2026


Vulnerability identifier: #VU158896
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-112399
CWE-ID: CWE-789
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to cause a denial of service through excessive memory allocation and possible process termination.

The vulnerability exists due to memory allocation using an excessive, file-controlled size in Pillow's PngImageFile._seek() function when opening an APNG whose first frame requests background disposal. A remote attacker can supply a crafted APNG with oversized IHDR dimensions and a first fcTL chunk specifying OP_BACKGROUND or OP_PREVIOUS to trigger allocation and zero-filling of the full canvas before the decompression-bomb check runs, exhausting memory and potentially terminating the application process.


Affected software

Pillow

How to mitigate CVE-2026-112399

Install security update from vendor's website.

Pillow - update to 13.0.0

External References

Related Security Bulletins