pypdf: Possible long runtimes/large memory usage when parsing indirect objects
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.18.0, a crafted PDF containing indirect-object identifiers or generation-number tokens that continue for a long time without whitespace can cause pypdf/_reader.py and pypdf/generic/_base.py to scan excessive input through read_until_whitespace, resulting in long runtimes and application unavailability. This issue is fixed in version 6.18.0.
From the CVE record · GitHub_M
References
- github.com/py-pdf/pypdf/security/advisories/GHSA-5jq2-8x83-x246Vendor advisory
- github.com/py-pdf/pypdf/pull/4055Patch
- github.com/py-pdf/pypdf/commit/82501d2993c6387833c4949d205caeb188f8bb9ePatch
- github.com/py-pdf/pypdf/releases/tag/6.18.0Release notes
- github.com/CVEProject/cvelistV5/tree/main/cves/2026/102xxx/CVE-2026-102994.json
- nvd.nist.gov/vuln/detail/CVE-2026-102994
- github.com/py-pdf/pypdf
- pypi.org/project/pypdf
- github.com/advisories/GHSA-5jq2-8x83-x246