Uncontrolled Recursion in Pillow - CVE-2026-112895

 

Uncontrolled Recursion in Pillow - CVE-2026-112895

Published: November 3, 2026


Vulnerability identifier: #VU158910
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-112895
CWE-ID: CWE-674
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 CPU and memory consumption or an uncaught recursion error.

The vulnerability exists due to uncontrolled recursion in Pillow's PdfParser.linearize_page_tree function when parsing an existing PDF for an append operation. A remote attacker can supply a crafted PDF containing cyclic or duplicated /Kids references to trigger unbounded recursion or excessive processing and cause a denial of service.


Affected software

Pillow

How to mitigate CVE-2026-112895

Install security update from vendor's website.

Pillow - update to 13.0.0

External References

Related Security Bulletins