Resource exhaustion in Pillow - CVE-2026-112400

 

Resource exhaustion in Pillow - CVE-2026-112400

Published: November 22, 2026


Vulnerability identifier: #VU169368
CSH Severity: Medium
CVSS v4: 8.2 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-112400
CWE-ID: CWE-400
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 exhausting memory.

The vulnerability exists due to improper state handling in Pillow's GIF frame-seeking code when it stores enlarged dimensions before validation and retains them after they are rejected. A remote attacker can upload a crafted GIF to exhaust memory if the application catches the frame-seek error and continues using the same image object for decoding or transformations that allocate memory based on the rejected dimensions.


Affected software

Pillow
Ubuntu
python3-pil (Ubuntu package)

How to mitigate CVE-2026-112400

Install security update from vendor's website.

Pillow - update to 13.0.0
python3-pil (Ubuntu package) - addressed in versions 10.2.0-1ubuntu1.5, 12.1.1-2ubuntu1.5, 12.3.0-1ubuntu2

External References

Related Security Bulletins