Py-pdf pypdf
pypdf: Possible large memory usage when parsing page tree
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.
First public PoC
None yetno public PoC found
Public PoCs00 on GitHub
CVSS7.1high · scored by CNA · CWE-400
CISA KEV
Not listednot known exploited
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
py-pdf pypdf
- < 6.21.4
Fixed in 6.21.4
Mitigation
Upgrade pypdf to 6.21.4 or later.
References
- Vendor advisory github.com/py-pdf/pypdf/security/advisories/GH…
- Patch github.com/py-pdf/pypdf/pull/4290
- Patch github.com/py-pdf/pypdf/commit/ea4ac663133f1b3…
1 more
- Release notes github.com/py-pdf/pypdf/releases/tag/6.21.4
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.