{"id":"CVE-2026-27888","published":"2026-02-26T00:42:00Z","modified":"2026-06-23T15:49:46Z","title":"pypdf: Manipulated FlateDecode XFA streams can exhaust RAM","vendor":"py-pdf","product":"pypdf","tier":"tail","description":{"text":"pypdf is a free and open-source pure-python PDF library. Prior to 6.7.3, an attacker who uses this vulnerability can craft a PDF which leads to the RAM being exhausted. This requires accessing the `xfa` property of a reader or writer and the corresponding stream being compressed using `/FlateDecode`. This has been fixed in pypdf 6.7.3. As a workaround, apply the patch manually.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.6,"severity":"MEDIUM","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/E:U","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00767,"percentile":0.51853,"provenance":"source"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"references":[{"url":"https://github.com/py-pdf/pypdf/security/advisories/GHSA-x7hp-r3qg-r3cj","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/py-pdf/pypdf/pull/3658","tags":["x_refsource_MISC"]},{"url":"https://github.com/py-pdf/pypdf/commit/7a4c8246ed48d9d328fb596942271da47b6d109c","tags":["x_refsource_MISC"]},{"url":"https://github.com/py-pdf/pypdf/releases/tag/6.7.3","tags":["x_refsource_MISC"]}],"priority":{"score":15.0,"factors":[{"name":"EPSS percentile","points":10.37},{"name":"CVSS severity","points":4.62}]},"vendorSlug":"py-pdf","affectedVersions":[{"vendor":"py-pdf","product":"pypdf","versions":["< 6.7.3"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-02-26T16:15:44.619815Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"pypdf","vulnerableRanges":["<6.7.3"],"patched":["6.7.3"],"from":["GHSA-x7hp-r3qg-r3cj","PYSEC-2026-3027"],"provenance":"source"}],"summary":{"text":"pypdf, the pure-Python PDF library from py-pdf, has an uncontrolled resource consumption flaw in how it handles XFA streams compressed with FlateDecode, which affects versions before 6.7.3. An attacker who can supply a crafted PDF can exhaust available RAM simply by having the application access the reader's or writer's xfa property on that file, with no authentication or user interaction required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:54:43Z"},"euvd":{"id":"EUVD-2026-8791","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-py-pdf-pypdf-cve-2026-27888","children":[{"from":"CVE-2026-27888","to":"CVE-2026-102999","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/6b10556d13609a68f9ed18bb29fdd8bba88eb2c3","https://github.com/py-pdf/pypdf/commit/7a4c8246ed48d9d328fb596942271da47b6d109c"],"basis":"shared function","functions":["xfa"]}]}],"packageHistory":[{"cve":"CVE-2026-27025","published":"2026-02-20","fixed":"6.7.1","kev":false},{"cve":"CVE-2026-27026","published":"2026-02-20","fixed":"6.7.1","kev":false},{"cve":"CVE-2026-27628","published":"2026-02-25","fixed":"6.7.2","kev":false,"link":{"from":"CVE-2026-27628","to":"CVE-2026-27888","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:pypdf","fromFixed":"6.7.2","toFixed":"6.7.3","daysApart":1}]}},{"cve":"CVE-2026-27888","published":"2026-02-26","fixed":"6.7.3","kev":false},{"cve":"CVE-2026-28351","published":"2026-02-27","fixed":"6.7.4","kev":false,"link":{"from":"CVE-2026-27888","to":"CVE-2026-28351","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:pypdf","fromFixed":"6.7.3","toFixed":"6.7.4","daysApart":1}]}},{"cve":"CVE-2026-28804","published":"2026-03-06","fixed":"6.7.5","kev":false},{"cve":"CVE-2026-31826","published":"2026-03-10","fixed":"6.8.0","kev":false}],"package":"PyPI:pypdf"}}