6.0medium
pypdf: Possible infinite loop in PdfWriter.find_outline_item
- Severity
- 6.0medium CVSS:4.0 by GitHub_M
- Exploit likelihood
- 0.34% (higher than 29% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-qfv9-64jg-mh7p
Description
pypdf is a free and open-source pure-python PDF library. Prior to 6.20.1, calling PdfWriter.find_outline_item on a crafted PDF with a cyclic outline hierarchy can enter an infinite loop and block the current process. This issue is fixed in version 6.20.1.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| py-pdf pypdf | < 6.20.1, before 6.20.1 | CVE List, NVD |
| pypdf (PyPI) | before 6.20.1 | GitHub Advisory Database |
All scores
| GitHub_M | 6.0medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N |
| GitHub | medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N |
| NVD | 3.3low CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
pypdf is a free and open-source pure-python PDF library. Prior to 6.20.1, calling PdfWriter.find_outline_item on a crafted PDF with a cyclic outline hierarchy can enter an infinite loop and block the current process. This issue is fixed in version 6.20.1.
GitHub Advisory Database
Impact
An attacker who uses this vulnerability can craft a PDF which leads to an infinite loop. This requires calling find_outline_item on a PdfWriter.
Patches
This has been fixed in pypdf==6.20.1.
Workarounds
If you cannot upgrade yet, consider applying the changes from PR #4188.
References
| https://github.com/py-pdf/pypdf/security/advisories/GHSA-qfv9-64jg-mh7p | vendor-advisory, web | |
| https://github.com/py-pdf/pypdf/pull/4188 | issue-tracking, patch, web | |
| https://github.com/py-pdf/pypdf/commit/c9c35b4471c2eb5fe078094f6c816e69d4ed25a0 | patch, web | |
| https://github.com/py-pdf/pypdf/releases/tag/6.20.1 | release-notes, web | |
| https://github.com/py-pdf/pypdf | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-113792 changed 2026-10-23 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-qfv9-64jg-mh7p changed 2026-10-21 | CC-BY-4.0 |
| NVD | CVE-2026-113792 changed 2026-11-05 | Public domain |