{"id":"CVE-2026-41168","published":"2026-04-22T20:49:10Z","modified":"2026-04-23T16:24:48Z","title":"pypdf has possible long runtimes for wrong size values in cross-reference and object streams","vendor":"py-pdf","product":"pypdf","tier":"tail","description":{"text":"pypdf is a free and open-source pure-python PDF library. An attacker who uses a vulnerability present in versions prior to 6.10.1 can craft a PDF which leads to long runtimes. This requires cross-reference streams with wrong large `/Size` values or object streams with wrong large `/N` values. This has been fixed in pypdf 6.10.1. As a workaround, one may apply the changes from the patch manually.","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.00535,"percentile":0.38653,"provenance":"source"},"cwes":[{"id":"CWE-834","name":"Excessive Iteration"}],"references":[{"url":"https://github.com/py-pdf/pypdf/security/advisories/GHSA-jj6c-8h6c-hppx","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/py-pdf/pypdf/pull/3733","tags":["x_refsource_MISC"]},{"url":"https://github.com/py-pdf/pypdf/commit/62338e9d36419cf193ccec7331784f45df1d70b3","tags":["x_refsource_MISC"]},{"url":"https://github.com/py-pdf/pypdf/releases/tag/6.10.1","tags":["x_refsource_MISC"]}],"priority":{"score":12.6,"factors":[{"name":"EPSS percentile","points":7.73},{"name":"CVSS severity","points":4.83}]},"vendorSlug":"py-pdf","affectedVersions":[{"vendor":"py-pdf","product":"pypdf","versions":["< 6.10.1"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-04-23T13:41:24.058142Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"pypdf","vulnerableRanges":["<6.10.1"],"patched":["6.10.1"],"from":["GHSA-jj6c-8h6c-hppx","PYSEC-2026-3021"],"provenance":"source"}],"summary":{"text":"The pypdf library (py-pdf vendor), a pure-Python PDF processing library, has a flaw in how it handles cross-reference streams and object streams, where wrong, large /Size or /N values can cause excessive iteration. An attacker with network access and no authentication or user interaction required can supply a crafted PDF that makes pypdf run for a long time, with the impact limited to availability.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:06:23Z"},"euvd":{"id":"EUVD-2026-25100","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-py-pdf-pypdf-cve-2023-46250","parents":[{"from":"CVE-2026-22690","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"]}]},{"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"]}]}],"children":[{"from":"CVE-2026-41168","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/62338e9d36419cf193ccec7331784f45df1d70b3"],"basis":"shared function","functions":["_flatten"]}]}],"packageHistory":[{"cve":"CVE-2026-33123","published":"2026-03-20","fixed":"6.9.1","kev":false},{"cve":"CVE-2026-33699","published":"2026-03-26","fixed":"6.9.2","kev":false},{"cve":"CVE-2026-40260","published":"2026-04-16","fixed":"6.10.0","kev":false,"link":{"from":"CVE-2026-40260","to":"CVE-2026-41168","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:pypdf","fromFixed":"6.10.0","toFixed":"6.10.1","daysApart":6}]}},{"cve":"CVE-2026-41168","published":"2026-04-22","fixed":"6.10.1","kev":false},{"cve":"CVE-2026-41312","published":"2026-04-22","fixed":"6.10.2","kev":false,"link":{"from":"CVE-2026-41168","to":"CVE-2026-41312","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:pypdf","fromFixed":"6.10.1","toFixed":"6.10.2","daysApart":0}]}},{"cve":"CVE-2026-41313","published":"2026-04-22","fixed":"6.10.2","kev":false,"link":{"from":"CVE-2026-41168","to":"CVE-2026-41313","relation":"successor","confidence":"medium","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:pypdf","fromFixed":"6.10.1","toFixed":"6.10.2","daysApart":0},{"kind":"similar","provenance":"machine","score":0.53,"basis":"same product + CWE + description similarity"}]}},{"cve":"CVE-2026-41314","published":"2026-04-22","fixed":"6.10.2","kev":false,"link":{"from":"CVE-2026-41168","to":"CVE-2026-41314","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:pypdf","fromFixed":"6.10.1","toFixed":"6.10.2","daysApart":0}]}}],"package":"PyPI:pypdf"}}