GitHub Advisory Database
GHSA-gmh7-3g9r-mjh5
pypdf: Possible long runtimes for large xref table header limits
Details
Impact
An attacker who uses this vulnerability can craft a PDF which leads to long runtimes. This requires opening a file with large/wrong upper limits in the xref table.
Patches
This has been fixed in pypdf==6.21.2.
Workarounds
If you cannot upgrade yet, consider applying the changes from PR #4239.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| PyPI | pypdf | All versions before 6.21.2 (fixed in 6.21.2) |