{"id":"CVE-2026-41313","aliases":["GHSA-4pxv-j86v-mhcw","PYSEC-2026-3007"],"title":"pypdf: Possible long runtimes for wrong size values in incremental mode","summary":"pypdf: Possible long runtimes for wrong size values in incremental mode","severity":"medium","cvss":6.5,"cvssVector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","vendor":"pypdf","product":"pypdf","ecosystem":"pip","affected":["pypdf < 6.10.2"],"patched":["pypdf 6.10.2"],"published":"2026-04-16","updated":"2026-09-10","sourceUpdated":"2026-09-10T03:50:42.729754195Z","source":"OSV","sourceUrl":"https://osv.dev/vulnerability/GHSA-4pxv-j86v-mhcw","references":[{"url":"https://github.com/py-pdf/pypdf/security/advisories/GHSA-4pxv-j86v-mhcw"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-41313"},{"url":"https://github.com/py-pdf/pypdf/pull/3735"},{"url":"https://github.com/py-pdf/pypdf/commit/c50a0104cf083356f7c7f5d61410466a57f5c88a"},{"url":"https://github.com/py-pdf/pypdf"},{"url":"https://github.com/py-pdf/pypdf/releases/tag/6.10.2"}],"tags":["osv","pip"],"epss":0.00214,"epssPercentile":0.12036,"ingestedAt":"2026-07-13T18:57:52.708Z","slug":"CVE-2026-41313","body":"## Overview\n\n### Impact\nAn attacker who uses this vulnerability can craft a PDF which leads to long runtimes. This requires loading a PDF with a large trailer `/Size` value in incremental mode.\n\n### Patches\nThis has been fixed in [pypdf==6.10.2](https://github.com/py-pdf/pypdf/releases/tag/6.10.2).\n\n### Workarounds\nIf you cannot upgrade yet, consider applying the changes from PR [#3735](https://github.com/py-pdf/pypdf/pull/3735).\n\n## Affected packages\n\n- `pypdf < 6.10.2`\n\n## Remediation\n\nUpgrade to a patched release:\n\n- `pypdf 6.10.2`","depth":"sunlit","depthScore":36,"depthScoreParts":{"impact":35.8,"likelihood":0,"exploitation":0,"ransomware":0},"changes":[]}