pypdf denial of service in cross-reference stream recovery
py-pdf pypdf
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| pypdf PyPI |
|
|
Original description
pypdf is a free and open-source pure-python PDF library. Prior to 6.21.2, an incomplete remediation for repeated malformed cross-reference entries in GHSA-55h5-xmcq-c37v could still trigger a complete PDF stream reload during each recovery attempt even when a recovery cache was present, causing crafted cross-reference streams to produce long runtimes. This issue is fixed in version 6.21.2.
From the CVE record · GitHub_M
References
- github.com/py-pdf/pypdf/security/advisories/GHSA-jr96-gvgh-j3r4
- github.com/py-pdf/pypdf/pull/4240
- github.com/py-pdf/pypdf/commit/68a0e5046cc9e14a6c24a21a713f3c7fbde18b4b
- github.com/py-pdf/pypdf/releases/tag/6.21.2
- github.com/CVEProject/cvelistV5/tree/main/cves/2026/115xxx/CVE-2026-115585.json
- nvd.nist.gov/vuln/detail/CVE-2026-115585
- github.com/py-pdf/pypdf