THREATOPS
THREAT OPS › Threat News › [GHSA] GHSA-254f-3936-288h (medium) — Pillow: PdfParser can recurse without limit in get_value() and linearize_page_tree()

[GHSA] GHSA-254f-3936-288h (medium) — Pillow: PdfParser can recurse without limit in get_value() and linearize_page_tree()

medgithub_advisoriesPublished 2026-10-21

GHSA-254f-3936-288h Severity: medium CVE: CVE-2026-112391

Pillow: PdfParser can recurse without limit in get_value() and linearize_page_tree()

### Summary `PdfParser`'s `get_value()` can recurse without any limit and crash with an uncaught `RecursionError`. It is reachable through `Image.save(im, fp=<pdf>, format="PDF", append=True)` when the existing PDF file is attacker-controlled. This is the

Indicators of compromise

Original source: https://github.com/advisories/GHSA-254f-3936-288h