pypdfに細工されたPDFを処理すると長時間止まる脆弱性
Summary
pypdfでは、細工されたPDFのページラベルを取得する際に処理が極端に長くなる脆弱性が見つかっています。影響を受けるのは6.21.3より前のバージョンです。修正版の6.21.3で対応できるため、pypdfを利用している場合は6.21.3以降へ更新してください。
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.3より前のバージョンです。修正版の6.21.3で対応できるため、pypdfを利用している場合は6.21.3以降へ更新してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| py-pdfpypdf | — | Not listed |
| pippypdf |
< 6.21.3→ 6.21.3 |
6.21.3 |
| PyPIpypdf |
< 6.21.3→ 6.21.3 |
6.21.3 |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Debian DEBIAN-CVE-2026-119206 pypdf Fix available
- Ubuntu UBUNTU-CVE-2026-119206 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.3, pypdf can take excessive time to retrieve page labels from a crafted PDF containing a flat page-label number tree with many ranges. The page_labels property resolves each page independently and repeatedly scans the same /Nums array from the beginning, causing work to grow with both the page count and the number of label ranges. This issue is fixed in version 6.21.3.
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