{"id":"CVE-2026-41313","published":"2026-04-22T21:04:59Z","modified":"2026-04-23T16:24:39Z","title":"pypdf: Possible long runtimes for wrong size values in incremental mode","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.2 can craft a PDF which leads to long runtimes. This requires loading a PDF with a large trailer `/Size` value in incremental mode. This has been fixed in pypdf 6.10.2. As a workaround, one may apply the changes from the patch manually.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.8,"severity":"MEDIUM","version":"4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00222,"percentile":0.13121,"provenance":"source"},"cwes":[{"id":"CWE-834","name":"Excessive Iteration"}],"references":[{"url":"https://github.com/py-pdf/pypdf/security/advisories/GHSA-4pxv-j86v-mhcw","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/py-pdf/pypdf/pull/3735","tags":["x_refsource_MISC"]},{"url":"https://github.com/py-pdf/pypdf/commit/c50a0104cf083356f7c7f5d61410466a57f5c88a","tags":["x_refsource_MISC"]},{"url":"https://github.com/py-pdf/pypdf/releases/tag/6.10.2","tags":["x_refsource_MISC"]}],"priority":{"score":6.0,"factors":[{"name":"EPSS percentile","points":2.62},{"name":"CVSS severity","points":3.36}]},"vendorSlug":"py-pdf","affectedVersions":[{"vendor":"py-pdf","product":"pypdf","versions":["< 6.10.2"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-04-23T13:42:06.228654Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"pypdf","vulnerableRanges":["<6.10.2"],"patched":["6.10.2"],"from":["GHSA-4pxv-j86v-mhcw","PYSEC-2026-3007"],"provenance":"source"}],"summary":{"text":"The pypdf PDF library, a pure-Python open-source package, contains a flaw in how it handles the trailer /Size value of PDFs loaded in incremental mode, which causes excessive iteration. An attacker with local access who gets a user to open a crafted PDF (requiring user interaction and no authentication) can cause the library to run for a long time, degrading availability.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:19:26Z"},"euvd":{"id":"EUVD-2026-25114","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-py-pdf-pypdf-cve-2026-22690","children":[{"from":"CVE-2026-41313","to":"CVE-2026-113792","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["pypdf/_writer.py"],"commits":["https://github.com/py-pdf/pypdf/commit/c9c35b4471c2eb5fe078094f6c816e69d4ed25a0","https://github.com/py-pdf/pypdf/commit/c50a0104cf083356f7c7f5d61410466a57f5c88a"],"basis":"rarely changed file"}]},{"from":"CVE-2026-41313","to":"CVE-2026-113793","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["pypdf/_writer.py"],"commits":["https://github.com/py-pdf/pypdf/commit/c9c35b4471c2eb5fe078094f6c816e69d4ed25a0","https://github.com/py-pdf/pypdf/commit/c50a0104cf083356f7c7f5d61410466a57f5c88a"],"basis":"rarely changed file"}]}],"packageHistory":[{"cve":"CVE-2026-40260","published":"2026-04-16","fixed":"6.10.0","kev":false},{"cve":"CVE-2026-41168","published":"2026-04-22","fixed":"6.10.1","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.51,"basis":"same product + CWE + description similarity"}]}},{"cve":"CVE-2026-41312","published":"2026-04-22","fixed":"6.10.2","kev":false},{"cve":"CVE-2026-41313","published":"2026-04-22","fixed":"6.10.2","kev":false},{"cve":"CVE-2026-41314","published":"2026-04-22","fixed":"6.10.2","kev":false},{"cve":"CVE-2026-48155","published":"2026-05-28","fixed":"6.12.0","kev":false},{"cve":"CVE-2026-48156","published":"2026-05-28","fixed":"6.12.0","kev":false}],"package":"PyPI:pypdf"}}