{"id":"CVE-2026-84309","published":"2026-09-01T19:58:46Z","modified":"2026-09-02T13:41:31Z","title":"pypdf: Possible infinite loop for TreeObject.insert_child","vendor":"py-pdf","product":"pypdf","tier":"tail","description":{"text":"pypdf is a free and open-source pure-python PDF library. Prior to 6.16.0, an attacker can craft a PDF whose cyclic tree structure causes pypdf/generic/_data_structures.py TreeObject.insert_child to follow /Next links indefinitely when a writing code path inserts a child, producing an infinite loop. This issue is fixed in version 6.16.0.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.9,"severity":"MEDIUM","version":"4.0","vector":"CVSS:4.0/AV:L/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.00187,"percentile":0.08449,"provenance":"source"},"cwes":[{"id":"CWE-835","name":"Loop with Unreachable Exit Condition"}],"references":[{"url":"https://github.com/py-pdf/pypdf/security/advisories/GHSA-jp53-mhqp-8xcg","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/py-pdf/pypdf/pull/3964","tags":["x_refsource_MISC"]},{"url":"https://github.com/py-pdf/pypdf/commit/c9ba557d565d57c53a0b3a0be06c0a4c29b0559b","tags":["x_refsource_MISC"]},{"url":"https://github.com/py-pdf/pypdf/releases/tag/6.16.0","tags":["x_refsource_MISC"]}],"priority":{"score":6.5,"factors":[{"name":"EPSS percentile","points":1.69},{"name":"CVSS severity","points":4.83}]},"vendorSlug":"py-pdf","affectedVersions":[{"vendor":"py-pdf","product":"pypdf","versions":["< 6.16.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-09-02T13:39:41.162522Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"pypdf","vulnerableRanges":["<6.16.0"],"patched":["6.16.0"],"from":["GHSA-jp53-mhqp-8xcg","PYSEC-2026-3913"],"provenance":"source"}],"summary":{"text":"pypdf, the pure-Python PDF library, has a flaw in its TreeObject.insert_child method in pypdf/generic/_data_structures.py that causes an infinite loop when it follows /Next links in a cyclic tree structure. An attacker who can supply a crafted PDF to an application that performs a writing operation inserting a child into that tree can trigger the hang, with no authentication or user interaction required and only local access needed to exploit it.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:16:12Z"},"euvd":{"id":"EUVD-2026-69477","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-py-pdf-pypdf-cve-2026-22690","children":[{"from":"CVE-2026-84309","to":"CVE-2026-113792","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["pypdf/generic/_data_structures.py"],"commits":["https://github.com/py-pdf/pypdf/commit/c9c35b4471c2eb5fe078094f6c816e69d4ed25a0","https://github.com/py-pdf/pypdf/commit/c9ba557d565d57c53a0b3a0be06c0a4c29b0559b"],"basis":"shared function","functions":["insert_child"]}]},{"from":"CVE-2026-84309","to":"CVE-2026-113793","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["pypdf/generic/_data_structures.py"],"commits":["https://github.com/py-pdf/pypdf/commit/c9c35b4471c2eb5fe078094f6c816e69d4ed25a0","https://github.com/py-pdf/pypdf/commit/c9ba557d565d57c53a0b3a0be06c0a4c29b0559b"],"basis":"shared function","functions":["insert_child"]}]}],"packageHistory":[{"cve":"CVE-2026-71852","published":"2026-08-07","fixed":"6.15.0","kev":false},{"cve":"CVE-2026-71870","published":"2026-08-07","fixed":"6.15.0","kev":false},{"cve":"CVE-2026-82398","published":"2026-08-31","fixed":"6.15.0","kev":false,"link":{"from":"CVE-2026-82398","to":"CVE-2026-84309","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:pypdf","fromFixed":"6.15.0","toFixed":"6.16.0","daysApart":1}]}},{"cve":"CVE-2026-84309","published":"2026-09-01","fixed":"6.16.0","kev":false},{"cve":"CVE-2026-84310","published":"2026-09-01","fixed":"6.16.1","kev":false,"link":{"from":"CVE-2026-84309","to":"CVE-2026-84310","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-84311","published":"2026-09-01","fixed":"6.16.1","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-102993","published":"2026-09-30","fixed":"6.17.0","kev":false}],"package":"PyPI:pypdf"}}