medium4.3
CVE-2026-24688
pypdf has possible Infinite Loop when processing outlines/bookmarks
Impact
pypdf is a free and open-source pure-python PDF library. An attacker who uses an infinite loop vulnerability that is present in versions prior to 6.6.2 can craft a PDF which leads to an infinite loop. This requires accessing the outlines/bookmarks. This has been fixed in pypdf 6.6.2. If projects cannot upgrade yet, consider applying the changes from PR #3610 manually.
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| pip | pypdf | < 6.6.2 | 6.6.2 |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Pypdf Project | Pypdf | before 6.6.2 |
| Py-Pdf | Pypdf | before 6.6.2 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/py-pdf/pypdf/commit/b1282f8dcdc1a7b41ceab6740ffddfdf31b1fec1
- https://github.com/py-pdf/pypdf/pull/3610
- https://github.com/py-pdf/pypdf/releases/tag/6.6.2
- https://github.com/py-pdf/pypdf/security/advisories/GHSA-2q4j-m29v-hq73
- https://github.com/advisories/GHSA-2q4j-m29v-hq73
- https://nvd.nist.gov/vuln/detail/CVE-2026-24688