{"id":"CVE-2026-84311","published":"2026-09-01T20:03:13Z","modified":"2026-09-02T16:02:25Z","title":"pypdf: Possible long runtimes/large memory usage when extracting XForm objects","vendor":"py-pdf","product":"pypdf","tier":"tail","description":{"text":"pypdf is a free and open-source pure-python PDF library. Prior to 6.16.1, an attacker can craft a PDF that causes pypdf/_page.py PageObject._extract_text and PageObject.extract_xform_text to traverse a directed acyclic graph of reused form XObjects in which each form invokes a child multiple times, creating exponentially many traversal paths and causing long runtimes and large memory consumption. This issue is fixed in version 6.16.1.","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.0018,"percentile":0.04484,"provenance":"source"},"cwes":[{"id":"CWE-834","name":"Excessive Iteration"}],"references":[{"url":"https://github.com/py-pdf/pypdf/security/advisories/GHSA-763m-79hh-57f2","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/py-pdf/pypdf/pull/3966","tags":["x_refsource_MISC"]},{"url":"https://github.com/py-pdf/pypdf/commit/d91ab705fd81ed1a9cec175c6958600dea1a4942","tags":["x_refsource_MISC"]},{"url":"https://github.com/py-pdf/pypdf/releases/tag/6.16.1","tags":["x_refsource_MISC"]}],"priority":{"score":4.3,"factors":[{"name":"EPSS percentile","points":0.9},{"name":"CVSS severity","points":3.36}]},"vendorSlug":"py-pdf","affectedVersions":[{"vendor":"py-pdf","product":"pypdf","versions":["< 6.16.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-09-02T13:42:21.690154Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"pypdf","vulnerableRanges":["<6.16.1"],"patched":["6.16.1"],"from":["GHSA-763m-79hh-57f2","PYSEC-2026-3911"],"provenance":"source"}],"summary":{"text":"The flaw is in pypdf's text extraction logic, specifically the PageObject._extract_text and PageObject.extract_xform_text routines in the pypdf library's page handling code, which fail to handle reused form XObjects efficiently. An attacker who supplies a crafted PDF in which form XObjects reference one another in a graph causes the traversal to expand into exponentially many paths, leading to long runtimes and high memory use, and the attack requires local access with a victim (user interaction) opening or processing the malicious file.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:22:08Z"},"euvd":{"id":"EUVD-2026-69607","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-py-pdf-pypdf-cve-2023-46250","parents":[{"from":"CVE-2026-24688","to":"CVE-2026-84311","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/b1282f8dcdc1a7b41ceab6740ffddfdf31b1fec1","https://github.com/py-pdf/pypdf/commit/d91ab705fd81ed1a9cec175c6958600dea1a4942"],"basis":"shared function","functions":["_get_outline","outline"]}]}],"children":[{"from":"CVE-2026-84311","to":"CVE-2026-119207","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["pypdf/_page.py"],"commits":["https://github.com/py-pdf/pypdf/commit/64270258c0eced720f7960aecf8cef31afd39f8d","https://github.com/py-pdf/pypdf/commit/d91ab705fd81ed1a9cec175c6958600dea1a4942"],"basis":"shared function","functions":["_extract_text"]}]}],"packageHistory":[{"cve":"CVE-2026-82398","published":"2026-08-31","fixed":"6.15.0","kev":false},{"cve":"CVE-2026-84309","published":"2026-09-01","fixed":"6.16.0","kev":false,"link":{"from":"CVE-2026-84309","to":"CVE-2026-84311","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:pypdf","fromFixed":"6.16.0","toFixed":"6.16.1","daysApart":0}]}},{"cve":"CVE-2026-84310","published":"2026-09-01","fixed":"6.16.1","kev":false},{"cve":"CVE-2026-84311","published":"2026-09-01","fixed":"6.16.1","kev":false},{"cve":"CVE-2026-102993","published":"2026-09-30","fixed":"6.17.0","kev":false,"link":{"from":"CVE-2026-84311","to":"CVE-2026-102993","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:pypdf","fromFixed":"6.16.1","toFixed":"6.17.0","daysApart":29}]}},{"cve":"CVE-2026-102994","published":"2026-09-30","fixed":"6.18.0","kev":false},{"cve":"CVE-2026-102995","published":"2026-09-30","fixed":"6.18.1","kev":false}],"package":"PyPI:pypdf"}}