Skip to content
Medium 7.1

pypdfに細工されたPDFを処理すると長時間止まる脆弱性

CVE-2026-119206 First seen on SecPulse

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

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 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

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