{"id":"CVE-2026-102997","published":"2026-09-30T20:05:51Z","modified":"2026-10-02T16:33:34Z","title":"pypdf: Possible long runtimes for partially malformed FlateDecode streams (Follow-up)","vendor":"py-pdf","product":"pypdf","tier":"tail","description":{"text":"pypdf is a free and open-source pure-python PDF library. Prior to 6.18.1, a crafted PDF containing a partially malformed /FlateDecode stream with padded data can force pypdf/filters.py to use inefficient byte-by-byte decompression while the earlier recovery counter fails to advance for bytes that successfully decode, causing long runtimes and application unavailability. This is a residual issue after the malformed FlateDecode recovery fix. This issue is fixed in version 6.18.1.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.7,"severity":"HIGH","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0062,"percentile":0.44003,"provenance":"source"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"},{"id":"CWE-407","name":"Inefficient Algorithmic Complexity"}],"references":[{"url":"https://github.com/py-pdf/pypdf/security/advisories/GHSA-jw7q-gvrg-4vj3","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/py-pdf/pypdf/pull/4073","tags":["x_refsource_MISC"]},{"url":"https://github.com/py-pdf/pypdf/commit/d9d38cf99b115deb562d3b68f36c33027bc04f79","tags":["x_refsource_MISC"]},{"url":"https://github.com/py-pdf/pypdf/releases/tag/6.18.1","tags":["x_refsource_MISC"]}],"priority":{"score":14.9,"factors":[{"name":"EPSS percentile","points":8.8},{"name":"CVSS severity","points":6.09}]},"vendorSlug":"py-pdf","affectedVersions":[{"vendor":"py-pdf","product":"pypdf","versions":["< 6.18.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-10-02T16:33:22.595789Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"pypdf","vulnerableRanges":["<6.18.1"],"patched":["6.18.1"],"from":["GHSA-jw7q-gvrg-4vj3","PYSEC-2026-4156"],"provenance":"source"}],"summary":{"text":"The flaw is in pypdf, a pure-Python PDF library, specifically in its filters component (pypdf/filters.py) where FlateDecode streams are decompressed. Versions prior to 6.18.1 fail to handle partially malformed FlateDecode streams with padded data efficiently, so an attacker who supplies a crafted PDF can cause long runtimes and make the application unavailable, with no authentication or user interaction required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:49:37Z"},"euvd":{"id":"EUVD-2026-90373","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-py-pdf-pypdf-cve-2026-27026","parents":[{"from":"CVE-2026-27026","to":"CVE-2026-102997","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["pypdf/filters.py"],"commits":["https://github.com/py-pdf/pypdf/commit/d9d38cf99b115deb562d3b68f36c33027bc04f79","https://github.com/py-pdf/pypdf/commit/7905842d833f899f1d3228af7e7467ad80277016"],"basis":"shared function","functions":["decompress"]}]}],"packageHistory":[{"cve":"CVE-2026-102994","published":"2026-09-30","fixed":"6.18.0","kev":false,"link":{"from":"CVE-2026-102994","to":"CVE-2026-102997","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:pypdf","fromFixed":"6.18.0","toFixed":"6.18.1","daysApart":0}]}},{"cve":"CVE-2026-102995","published":"2026-09-30","fixed":"6.18.1","kev":false},{"cve":"CVE-2026-102996","published":"2026-09-30","fixed":"6.18.1","kev":false},{"cve":"CVE-2026-102997","published":"2026-09-30","fixed":"6.18.1","kev":false},{"cve":"CVE-2026-102998","published":"2026-09-30","fixed":"6.19.0","kev":false},{"cve":"CVE-2026-102999","published":"2026-09-30","fixed":"6.19.0","kev":false},{"cve":"CVE-2026-103000","published":"2026-09-30","fixed":"6.19.0","kev":false}],"package":"PyPI:pypdf"}}