pypdf: Possible large memory usage when parsing page tree
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 6.21.4
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- 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
- CVE published
- First seen by cve.now
Affected versions
- py-pdf pypdf
fixed in 6.21.4