Uncontrolled Recursion in Pillow - CVE-2026-112895
Published: November 3, 2026
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.