{"id":"CVE-2026-82398","published":"2026-08-31T21:41:10Z","modified":"2026-09-01T14:57:30Z","title":"pypdf: Inefficient handling of non-whitespace inputs in read_until_whitespace","vendor":"py-pdf","product":"pypdf","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.9,"severity":"MEDIUM","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00524,"percentile":0.3779,"provenance":"source"},"cwes":[{"id":"CWE-407","name":"Inefficient Algorithmic Complexity"}],"references":[{"url":"https://github.com/py-pdf/pypdf/security/advisories/GHSA-fc8x-2rww-xw9m","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/py-pdf/pypdf/pull/3947","tags":["x_refsource_MISC"]},{"url":"https://github.com/py-pdf/pypdf/commit/4959848e057e37c218dccad7465259210923faaa","tags":["x_refsource_MISC"]},{"url":"https://github.com/py-pdf/pypdf/releases/tag/6.15.0","tags":["x_refsource_MISC"]}],"priority":{"score":12.4,"factors":[{"name":"EPSS percentile","points":7.56},{"name":"CVSS severity","points":4.83}]},"vendorSlug":"py-pdf","affectedVersions":[{"vendor":"py-pdf","product":"pypdf","versions":["< 6.15.0"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-09-01T14:18:26.492095Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"pypdf","vulnerableRanges":["<6.15.0"],"patched":["6.15.0"],"from":["GHSA-fc8x-2rww-xw9m","PYSEC-2026-3912"],"provenance":"source"}],"summary":{"text":"The pypdf Python PDF library, specifically the read_until_whitespace function in pypdf/_utils.py, handles long runs of non-whitespace bytes inefficiently in versions before 6.15.0. An attacker who can supply a crafted PDF that makes this function read a long stream of non-whitespace bytes can cause a long processing delay, since the function's repeated immutable byte concatenation in a one-byte loop scales quadratically; the attack requires only network access to the target's PDF input with no authentication, no user interaction, and no special configuration.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:39:55Z"},"euvd":{"id":"EUVD-2026-68894","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-py-pdf-pypdf-cve-2023-46250","children":[{"from":"CVE-2026-82398","to":"CVE-2026-102994","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["pypdf/_utils.py"],"commits":["https://github.com/py-pdf/pypdf/commit/82501d2993c6387833c4949d205caeb188f8bb9e","https://github.com/py-pdf/pypdf/commit/4959848e057e37c218dccad7465259210923faaa"],"basis":"shared function","functions":["_get_max_pdf_version_header"]},{"kind":"similar","provenance":"machine","score":0.44,"basis":"same product + CWE + description similarity"}]}],"packageHistory":[{"cve":"CVE-2026-59935","published":"2026-07-08","fixed":"6.14.2","kev":false,"link":{"from":"CVE-2026-59935","to":"CVE-2026-82398","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:pypdf","fromFixed":"6.14.2","toFixed":"6.15.0","daysApart":54}]}},{"cve":"CVE-2026-71852","published":"2026-08-07","fixed":"6.15.0","kev":false},{"cve":"CVE-2026-71870","published":"2026-08-07","fixed":"6.15.0","kev":false},{"cve":"CVE-2026-82398","published":"2026-08-31","fixed":"6.15.0","kev":false},{"cve":"CVE-2026-84309","published":"2026-09-01","fixed":"6.16.0","kev":false,"link":{"from":"CVE-2026-82398","to":"CVE-2026-84309","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:pypdf","fromFixed":"6.15.0","toFixed":"6.16.0","daysApart":1}]}},{"cve":"CVE-2026-84310","published":"2026-09-01","fixed":"6.16.1","kev":false},{"cve":"CVE-2026-84311","published":"2026-09-01","fixed":"6.16.1","kev":false}],"package":"PyPI:pypdf"}}