GitHub advisory · PyPI
pypdf has possible large memory usage when parsing page tree
Description
An attacker who uses this vulnerability can craft a PDF which leads to large memory usage. This requires parsing the page tree with many shared resources.
This has been fixed in pypdf==6.21.4.
If you cannot upgrade yet, consider applying the changes from PR #4290.
Manual fix · PyPI
pip install --upgrade "pypdf>=6.21.4"Sources