Skip to content
Medium 7.1

pypdfに細工されたPDFでメモリを大量消費される脆弱性

CVE-2026-119207 First seen on SecPulse

Summary

pypdfのstrictモードで細工された不正な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のstrictモードで細工された不正な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 consume excessive memory when strict mode loads a crafted invalid PDF dictionary. Nested parsing failures add repeated exception text to newly raised errors, allowing a small malformed dictionary to amplify into very large error messages. 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