Pillow is a Python imaging library. From 5.1.0 until 13.0.0, Pillow's PdfParser.get_value() can recurse without a limit while reading nested PDF objects. The parser follows attacker-controlled arrays and dictionaries when an existing PDF is opened for append. An attacker can provide a deeply nested PDF to an application that saves an image with PDF append enabled. This can raise an uncaught RecursionError or terminate the worker, causing denial of service. This issue is fixed in version 13.0.0.
Fix
Patch, vendor advisory and mitigation references on NVD 2
- https://github.com/python-pillow/Pillow/commit/94cb11c44ff7345414da17ebfea1598a529ad9cd Patch
- https://github.com/python-pillow/Pillow/security/advisories/GHSA-254f-3936-288h Exploit, Vendor Advisory
Every line above is quoted from NVD, CISA, Microsoft, the vendor's own advisory or DISA; nothing is generated.
Change history 8
- Cpes+1 CPE criteria (now 1)NVD modified 2026-10-23 17:00
- StatusPublished → AnalyzedNVD modified 2026-10-23 17:00
- StatusUndergoing Analysis → PublishedNVD modified 2026-10-20 16:09
- StatusPublished → Undergoing AnalysisNVD modified 2026-10-20 19:50
- StatusReceived → PublishedNVD modified 2026-10-20 16:09
- StatusPublished → ReceivedNVD modified 2026-10-20 17:17
- StatusReceived → PublishedNVD modified 2026-10-19 20:40
- First seenCVSS 6.3NVD modified 2026-10-19 21:17
Affected (CPE criteria) 1
cpe:2.3:a:python:pillow:*:*:*:*:*:*:*:*