pypdfにPDFのページツリー解析時にメモリを大量消費される脆弱性
Summary
pypdfは、細工されたPDFのページツリーを解析すると、メモリを過剰に消費する脆弱性があります。6.21.4より前のバージョンが影響を受け、CVSS v4のスコアは7.1です。修正版の6.21.4が公開されているので、pypdfを利用している場合は6.21.4以降へ更新してください。
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.
pypdfは、細工されたPDFのページツリーを解析すると、メモリを過剰に消費する脆弱性があります。6.21.4より前のバージョンが影響を受け、CVSS v4のスコアは7.1です。修正版の6.21.4が公開されているので、pypdfを利用している場合は6.21.4以降へ更新してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| py-pdfpypdf | — | Not listed |
| pippypdf |
< 6.21.4→ 6.21.4 |
6.21.4 |
| PyPIpypdf |
< 6.21.4→ 6.21.4 |
6.21.4 |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Debian DEBIAN-CVE-2026-119204 pypdf Fix available
- Ubuntu UBUNTU-CVE-2026-119204 pypdf No fixed version in this record
Original description The description as published by the source.
pypdf is a free and open-source pure-python PDF library. Prior to 6.21.4, pypdf can consume excessive memory while parsing a crafted PDF page tree containing many shared resources. Page-tree flattening copies page dictionary and inherited resource entries without a document-wide entry budget, allowing the crafted resource structure to cause disproportionate allocations. This issue is fixed in version 6.21.4.
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