Skip to content
Medium 7.1

pypdfに細工されたPDFで処理が過剰になる脆弱性

CVE-2026-119208 First seen on SecPulse

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

PackageAffected → Fixed
py-pdfpypdf —
pippypdf
< 6.21.3→ 6.21.3
PyPIpypdf
< 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.

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

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details