Pillow PDF追記で細工されたPDFにより過剰なCPU消費を招く恐れ
Summary
Pillowで、細工されたPDFに対して追記保存を行うと、ページツリーの重複参照を展開するためCPUが過剰に消費される問題が見つかりました。影響を受けるのは5.1.0から13.0.0までのPillowです。修正版の13.0.0に更新してください。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
Pillowで、細工されたPDFに対して追記保存を行うと、ページツリーの重複参照を展開するためCPUが過剰に消費される問題が見つかりました。影響を受けるのは5.1.0から13.0.0までのPillowです。修正版の13.0.0に更新してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| python-pillowPillow | — | Not listed |
| pipPillow |
< 13.0.0→ 13.0.0 |
13.0.0 |
| PyPIpillow |
≥ 5.1.0, < 13.0.0→ 13.0.0 |
13.0.0 |
| Bitnamipillow |
≥ 5.1.0, < 13.0.0→ 13.0.0 |
13.0.0 |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Debian DEBIAN-CVE-2026-96640 pillow Fix available
- Ubuntu UBUNTU-CVE-2026-96640 pillow Fix available
Original description The description as published by the source.
Pillow is a Python imaging library. From 5.1.0 until 13.0.0, PdfParser.linearize_page_tree() in src/PIL/PdfParser.py treats a PDF /Pages graph as a tree without tracking duplicate indirect references. When Image.save(..., format="PDF", append=True) processes an attacker-controlled existing PDF whose /Kids arrays repeatedly reference the same child /Pages node, Pillow expands the shared subtree as distinct pages. A compact malformed PDF can therefore create exponentially many page references and consume disproportionate CPU before the append completes. This issue is fixed in version 13.0.0.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- package github.com
- patch github.com
- patch github.com
- REDHAT Red Hat
- web github.com
- web github.com