pypdfに細工されたPDFで処理が過剰になる脆弱性
Summary
pypdfは、細工された暗号化PDFのページ数を取得する際に、時間とメモリを過剰に消費する脆弱性です。ページ数が検証されないまま使われるため、攻撃者の値によって処理が膨らみます。6.21.3より前の版が対象で、修正版は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です。対象のバージョンを使っている場合は、修正版への更新を優先してください。
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-119208 pypdf Fix available
- Ubuntu UBUNTU-CVE-2026-119208 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 consume excessive time and memory when an application accesses the page count of a crafted encrypted PDF whose page tree declares a forged /Count value. Even after successful decryption, page-count retrieval trusts the unvalidated declared count instead of walking the page tree, allowing the attacker-controlled value to drive excessive work and memory use. 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