Skip to main content
← All vulnerabilities
CVE-2026-119204EUVD-2026-113375

pypdf: Possible large memory usage when parsing page tree

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 6.21.4
None on Exploit-DB, Metasploit or GitHub

Summary

pypdf, a free Python library for reading and manipulating PDF files, is affected by this vulnerability. A specially crafted PDF with a malicious page tree can cause the library to use excessive memory while parsing, which may lead to slowdowns or crashes.

Summarized by anthropic/claude-haiku-5.5. Verify details against the original sources.

Read the original description

pypdf is a free and open-source pure-python PDF library. Prior to 6.21.4, pypdf can consume excessive memory while parsing a crafted PDF page tree containing many shared resources. Page-tree flattening copies page dictionary and inherited resource entries without a document-wide entry budget, allowing the crafted resource structure to cause disproportionate allocations. This issue is fixed in version 6.21.4.

Timeline

  1. CVE published
  2. First seen by cve.now

Affected versions

  • py-pdf pypdf

    fixed in 6.21.4

References 4

GitHub · py-pdf/pypdf