// Security Advisory Triage
Pillow infinite loop in PDF parsing fixed in 13.0.0
GitHub advisories — pip · published 2026-10-22 17:17 UTC
WHAT CHANGEDGitHub published CVE-2026-112406 on 21 October 2026, rating it high severity. Pillow versions before 13.0.0 contain an infinite loop vulnerability in PdfParser.rewrite_pages when processing PDF page trees with parent cycles. First patched version is 13.0.0.
WHY IT MATTERSAn attacker can trigger a denial of service by supplying a malformed PDF with a cyclic page tree structure. Any service that processes user-supplied PDFs with Pillow will hang indefinitely on such input, blocking the worker thread or process.
WHAT TO DOUpgrade Pillow to 13.0.0 or later. Check your dependency tree with `pip list | grep -i pillow` or equivalent to confirm current version, then update with `pip install --upgrade Pillow>=13.0.0`.
Model-reported confidence 95% (not measured accuracy)
Primary source ↗
written by anthropic/claude-sonnet-4.5
Show the reasoning — raw diff, triage verdict, confidence
RAW DIFF
+ghsa_id: GHSA-f2g6-542v-9j58 +summary: Pillow: Infinite loop in PdfParser.rewrite_pages on page tree Parent cycle +severity: high +published_at: 2026-10-21T21:21:07Z +cve_id: CVE-2026-112406 +vulnerabilities[].package.name: Pillow +vulnerabilities[].first_patched_version: 13.0.0
HOW IT WAS JUDGED
Triage signals below are model-reported assertions, preserved verbatim; they are not independent arithmetic verification.
| triage verdict | MATERIAL at 0.92, needed 0.5 |
|---|---|
| triage reasoning | Pillow is a standard dependency in Python services. High-severity DoS in PDF handling affects normal workloads. |
| signals | known CVE with assigned ID · high severity rating · affects Pillow — widely-used image processing library in dependency trees · new advisory entry with first_patched_version specified · infinite loop vulnerability in PDF parsing — DoS risk |
| suppression | — |
| triage model | anthropic/claude-haiku-4.5 ($0.00000) |
| writer model | anthropic/claude-sonnet-4.5 ($0.00000) |