GitHub advisory · PyPI
pypdf has possible large memory usage when parsing cross-reference streams
Description
An attacker who uses this vulnerability can craft a PDF which leads to large memory usage. This requires opening a file with cross-reference streams.
This has been fixed in pypdf==6.21.3.
If you cannot upgrade yet, consider applying the changes from PR #4269.
Manual fix · PyPI
pip install --upgrade "pypdf>=6.21.3"Sources