{"id":"CVE-2026-22691","published":"2026-01-10T04:46:12Z","modified":"2026-01-12T16:48:53Z","title":"pypdf has possible long runtimes for malformed startxref","vendor":"py-pdf","product":"pypdf","tier":"tail","description":{"text":"pypdf is a free and open-source pure-python PDF library. Prior to version 6.6.0, pypdf has possible long runtimes for malformed startxref. An attacker who uses this vulnerability can craft a PDF which leads to possibly long runtimes for invalid startxref entries. When rebuilding the cross-reference table, PDF files with lots of whitespace characters become problematic. Only the non-strict reading mode is affected. Only the non-strict reading mode is affected. This issue has been patched in version 6.6.0.","provenance":"source","from":"CVE.org"},"cvss":{"score":2.7,"severity":"LOW","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/E:U","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00638,"percentile":0.45123,"provenance":"source"},"cwes":[{"id":"CWE-1333","name":"Inefficient Regular Expression Complexity"},{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"references":[{"url":"https://github.com/py-pdf/pypdf/security/advisories/GHSA-4f6g-68pf-7vhv","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/py-pdf/pypdf/pull/3594","tags":["x_refsource_MISC"]},{"url":"https://github.com/py-pdf/pypdf/commit/294165726b646bb7799be1cc787f593f2fdbcf45","tags":["x_refsource_MISC"]},{"url":"https://github.com/py-pdf/pypdf/releases/tag/6.6.0","tags":["x_refsource_MISC"]}],"priority":{"score":10.9,"factors":[{"name":"EPSS percentile","points":9.02},{"name":"CVSS severity","points":1.89}]},"vendorSlug":"py-pdf","affectedVersions":[{"vendor":"py-pdf","product":"pypdf","versions":["< 6.6.0"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-01-12T16:48:45.352870Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"pypdf","vulnerableRanges":["<6.6.0"],"patched":["6.6.0"],"from":["GHSA-4f6g-68pf-7vhv","PYSEC-2026-1828"],"provenance":"source"}],"summary":{"text":"pypdf, the pure-Python PDF library from py-pdf, has a flaw in how it handles malformed startxref entries that can cause possibly long runtimes, specifically when it rebuilds the cross-reference table for PDFs containing many whitespace characters, and only in its non-strict reading mode. An attacker who can supply a crafted PDF for processing by pypdf in non-strict mode can trigger these long runtimes, requiring no authentication, privileges or user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:10:45Z"},"euvd":{"id":"EUVD-2026-1691","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-py-pdf-pypdf-cve-2023-46250","children":[{"from":"CVE-2026-22691","to":"CVE-2026-119204","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["pypdf/_doc_common.py"],"commits":["https://github.com/py-pdf/pypdf/commit/ea4ac663133f1b3de1d7a8f2e6fa239802fde79e","https://github.com/py-pdf/pypdf/commit/294165726b646bb7799be1cc787f593f2fdbcf45"],"basis":"shared function","functions":["_flatten"]}]},{"from":"CVE-2026-22691","to":"CVE-2026-119207","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["pypdf/_reader.py"],"commits":["https://github.com/py-pdf/pypdf/commit/64270258c0eced720f7960aecf8cef31afd39f8d","https://github.com/py-pdf/pypdf/commit/294165726b646bb7799be1cc787f593f2fdbcf45"],"basis":"shared function","functions":["root_object"]}]},{"from":"CVE-2026-22691","to":"CVE-2026-119209","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["pypdf/_reader.py"],"commits":["https://github.com/py-pdf/pypdf/commit/a93fe3a901fd00af38f0a105c3ba7175fa72dcb4","https://github.com/py-pdf/pypdf/commit/294165726b646bb7799be1cc787f593f2fdbcf45"],"basis":"shared function","functions":["PdfReader","__init__"]}]},{"from":"CVE-2026-22691","to":"CVE-2026-41168","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["pypdf/_doc_common.py","pypdf/_reader.py"],"commits":["https://github.com/py-pdf/pypdf/commit/294165726b646bb7799be1cc787f593f2fdbcf45","https://github.com/py-pdf/pypdf/commit/62338e9d36419cf193ccec7331784f45df1d70b3"],"basis":"shared function","functions":["_flatten"]}]}],"packageHistory":[{"cve":"CVE-2025-62708","published":"2025-10-22","fixed":"6.1.3","kev":false},{"cve":"CVE-2025-66019","published":"2025-11-25","fixed":"6.4.0","kev":false,"link":{"from":"CVE-2025-66019","to":"CVE-2026-22691","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:pypdf","fromFixed":"6.4.0","toFixed":"6.6.0","daysApart":46}]}},{"cve":"CVE-2026-22690","published":"2026-01-10","fixed":"6.6.0","kev":false},{"cve":"CVE-2026-22691","published":"2026-01-10","fixed":"6.6.0","kev":false},{"cve":"CVE-2026-24688","published":"2026-01-27","fixed":"6.6.2","kev":false,"link":{"from":"CVE-2026-22691","to":"CVE-2026-24688","relation":"successor","confidence":"high","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:pypdf","fromFixed":"6.6.0","toFixed":"6.6.2","daysApart":17},{"kind":"same-code","provenance":"machine","files":["pypdf/_doc_common.py"],"commits":["https://github.com/py-pdf/pypdf/commit/294165726b646bb7799be1cc787f593f2fdbcf45","https://github.com/py-pdf/pypdf/commit/b1282f8dcdc1a7b41ceab6740ffddfdf31b1fec1"],"basis":"shared file"}]}},{"cve":"CVE-2026-27024","published":"2026-02-20","fixed":"6.7.1","kev":false},{"cve":"CVE-2026-27025","published":"2026-02-20","fixed":"6.7.1","kev":false}],"package":"PyPI:pypdf"}}