pypdf has long runtimes for wrong size values in cross-reference and object streams
Description
Published to the GitHub Advisory Database
Apr 15, 2026
Reviewed
Apr 15, 2026
Published by the National Vulnerability Database
Apr 22, 2026
Last updated
Apr 24, 2026
Impact
An attacker who uses this vulnerability can craft a PDF which leads to long runtimes. This requires cross-reference streams with wrong large
/Sizevalues or object streams with wrong large/Nvalues.Patches
This has been fixed in pypdf==6.10.1.
Workarounds
If you cannot upgrade yet, consider applying the changes from PR #3733.
References