CVE-2026-82398
MEDIUM 6.9CVSS 4.0pypdf: Inefficient handling of non-whitespace inputs in read_until_whitespace
pypdf is a free and open-source pure-python PDF library. Prior to 6.15.0, an attacker can craft a PDF that causes long runtimes when the pypdf/_utils.py function read_until_whitespace reads a stream containing a long run of bytes without whitespace. The function repeatedly performs immutable bytes concatenation in a one-byte loop, causing quadratic processing cost for the long non-whitespace input. This issue is fixed in version 6.15.0.
- Published
- 31 Aug 2026
- Last modified
- 2 Nov 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-407
- Also known as
- GHSA-fc8x-2rww-xw9mPYSEC-2026-3912
- Sources
- NVDJSONOSV GHSA-fc8x-2rww-xw9mJSONOSV PYSEC-2026-3912JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | MEDIUM 6.9 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N | |
| OSV | PyPA | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | py-pdf | pypdfcpe:2.3:a:py-pdf:pypdf:*:*:*:*:*:*:*:* |
< 6.15.0 | 6.15.0 |
| OSV | PyPI | pypdf | < 6.15.0 | 6.15.0 |
References
- https://github.com/py-pdf/pypdf/commit/4959848e057e37c218dccad7465259210923faaa · Patch, WEB
- https://github.com/py-pdf/pypdf/pull/3947 · Patch, WEB
- https://github.com/py-pdf/pypdf/releases/tag/6.15.0 · Release Notes, WEB
- https://github.com/py-pdf/pypdf/security/advisories/GHSA-fc8x-2rww-xw9m · Patch, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-82398 · ADVISORY
- https://github.com/py-pdf/pypdf · PACKAGE
- https://pypi.org/project/pypdf · PACKAGE
- https://github.com/advisories/GHSA-fc8x-2rww-xw9m · ADVISORY
History
- 25 Nov 2026 21:05 UTC · NVD: first stored (published 31 Aug 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 10 Sep 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 2 Sep 2026)