GitHub advisory · PyPI
pypdf has possible infinite loop when hitting EOF in standard xref table during trailer search
Description
An attacker who uses this vulnerability can craft a PDF which leads to an infinite loop. This requires opening an incomplete file without a trailer.
This has been fixed in pypdf==6.21.4.
If you cannot upgrade yet, consider applying the changes from PR #4289.
Manual fix · PyPI
pip install --upgrade "pypdf>=6.21.4"Sources