Technical impact
A crafted PDF containing an invalid dictionary can trigger nested parsing failures in the pypdf library when strict mode is enabled. Each failure appends its exception text to the next, creating exponentially larger error messages that rapidly consume memory. The consequence is a potential crash or significant slowdown of any process that loads such a PDF, representing an application‑level denial of service. The weakness is reflected in CWE-400, CWE-405, and CWE-770.
Affected Systems
All versions of py‑pdf pypdf released before 6.21.3 are affected. The fix is available starting with release 6.21.3, which removes the excessive memory usage bug.
Risk and Exploitability
The CVSS score of 7.1 indicates a moderate to high severity. No EPSS score is currently available and the vulnerability is not listed in CISA KEV, suggesting limited documented exploitation. The likely attack vector is that an application using pypdf in strict mode will receive a malicious PDF from an external source; the crafted PDF triggers the nested failure chain, inflating memory usage and potentially causing the process to crash. Because the exploit requires supplying a specially crafted input to a known library, the risk poses a low‑to‑moderate threat that can be mitigated by updating the library or altering its configuration.
Github GHSA