Uncontrolled Recursion in Pillow - CVE-2026-112391

 

Uncontrolled Recursion in Pillow - CVE-2026-112391

Published: November 3, 2026


Vulnerability identifier: #VU158908
CSH Severity: Low
CVSS v4: 4.6 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-112391
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 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.


Affected software

Pillow

How to mitigate CVE-2026-112391

Install security update from vendor's website.

Pillow - update to 13.0.0

External References

Related Security Bulletins