Uncontrolled Recursion in Pillow - CVE-2026-112391
Published: November 3, 2026
Vulnerability details
The vulnerability allows a remote attacker to cause a denial of service by crashing a PDF append operation.
The vulnerability exists due to uncontrolled recursion caused by an ineffective recursion-depth guard in Pillow's PdfParser.get_value() in src/PIL/PdfParser.py when parsing deeply nested PDF objects during append-mode saving. A remote attacker can trick a victim into appending an image page to a specially crafted PDF using Image.save(..., format="PDF", append=True) to trigger an uncaught RecursionError and cause a denial of service.