Description
pypdf is a free and open-source pure-python PDF library. Prior to 6.20.0, an attacker can craft an incomplete PDF that ends inside a standard cross-reference table, causing pypdf to mishandle the unexpected end of file and enter an infinite loop. This issue is fixed in version 6.20.0.
Metrics
CVSS 3.1 5.5/10
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:HWeakness enumeration
Affected software
| Vendor | Product | Versions |
|---|---|---|
| py-pdf | pypdf | < 6.20.0 |
References
- https://github.com/py-pdf/pypdf/commit/37e1cd681744bac38b159f7e1c614eee8d639c58Patch
- https://github.com/py-pdf/pypdf/issues/4169Issue Tracking, Patch
- https://github.com/py-pdf/pypdf/pull/4170Issue Tracking, Patch
- https://github.com/py-pdf/pypdf/releases/tag/6.20.0Release Notes
- https://github.com/py-pdf/pypdf/security/advisories/GHSA-39mj-jf6j-2qj3Vendor Advisory
Timeline
- Published
- Oct 21, 2026
- Last modified
- Nov 2, 2026
- NVD status
- Analyzed