{"id":"CVE-2026-113791","published":"2026-10-21T15:37:50Z","modified":"2026-10-30T15:57:39Z","title":"pypdf: Possible large memory usage when parsing content streams","vendor":"py-pdf","product":"pypdf","tier":"tail","description":{"text":"pypdf is a free and open-source pure-python PDF library. Prior to 6.21.0, an attacker can craft a PDF containing a content stream with many small operations, causing parsing to consume large amounts of memory. This issue is fixed in version 6.21.0.","provenance":"source","from":"CVE.org"},"cvss":{"score":6,"severity":"MEDIUM","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00366,"percentile":0.22639,"provenance":"source"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"},{"id":"CWE-770","name":"Allocation of Resources Without Limits or Throttling"}],"references":[{"url":"https://github.com/py-pdf/pypdf/security/advisories/GHSA-cgf9-327m-v77c","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/py-pdf/pypdf/pull/4218","tags":["x_refsource_MISC"]},{"url":"https://github.com/py-pdf/pypdf/commit/18bd2981a74479483a0b9507602c58a63d6c9b12","tags":["x_refsource_MISC"]},{"url":"https://github.com/py-pdf/pypdf/releases/tag/6.21.0","tags":["x_refsource_MISC"]}],"priority":{"score":8.7,"factors":[{"name":"EPSS percentile","points":4.53},{"name":"CVSS severity","points":4.2}]},"vendorSlug":"py-pdf","affectedVersions":[{"vendor":"py-pdf","product":"pypdf","versions":["< 6.21.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-10-30T15:57:28.851965Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"pypdf","vulnerableRanges":["<6.21.0"],"patched":["6.21.0"],"from":["GHSA-cgf9-327m-v77c"],"provenance":"source"}],"summary":{"text":"The flaw is in pypdf, a pure-Python PDF library from py-pdf, where parsing a content stream with many small operations can consume large amounts of memory. An attacker who can supply a crafted PDF to an application using pypdf can cause memory exhaustion during parsing, and this requires that a user open or process the malicious file (user interaction) with no authentication needed.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:59:23Z"},"euvd":{"id":"EUVD-2026-107331","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-py-pdf-pypdf-cve-2023-46250","parents":[{"from":"CVE-2023-46250","to":"CVE-2026-113791","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/9b23ac3c9619492570011d551d521690de9a3e2d","https://github.com/py-pdf/pypdf/commit/18bd2981a74479483a0b9507602c58a63d6c9b12"],"basis":"shared function","functions":["_clone"]}]},{"from":"CVE-2026-31826","to":"CVE-2026-113791","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/18bd2981a74479483a0b9507602c58a63d6c9b12","https://github.com/py-pdf/pypdf/commit/3c550b3196adeba1506a26e57c09c09fac75e9aa"],"basis":"shared function","functions":["read_from_stream"]}]},{"from":"CVE-2026-59935","to":"CVE-2026-113791","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/18bd2981a74479483a0b9507602c58a63d6c9b12","https://github.com/py-pdf/pypdf/commit/5a33a46416aa1ae6c025ff90a3cca57631fdafd2"],"basis":"shared function","functions":["_read_inline_image"]}]},{"from":"CVE-2026-59936","to":"CVE-2026-113791","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/18bd2981a74479483a0b9507602c58a63d6c9b12","https://github.com/py-pdf/pypdf/commit/ec3b14596186c40caca7cf8ab9b2155203e01b5b"],"basis":"shared function","functions":["_read_inline_image"]}]},{"from":"CVE-2026-102994","to":"CVE-2026-113791","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["pypdf/generic/_utils.py"],"commits":["https://github.com/py-pdf/pypdf/commit/82501d2993c6387833c4949d205caeb188f8bb9e","https://github.com/py-pdf/pypdf/commit/18bd2981a74479483a0b9507602c58a63d6c9b12"],"basis":"rarely changed file"}]},{"from":"CVE-2026-113789","to":"CVE-2026-113791","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["pypdf/_configuration.py"],"commits":["https://github.com/py-pdf/pypdf/commit/5ef728f0e16d225c853e89f861ba0a67402fe3f2","https://github.com/py-pdf/pypdf/commit/18bd2981a74479483a0b9507602c58a63d6c9b12"],"basis":"shared function","functions":["Configuration"]}]}],"children":[{"from":"CVE-2026-113791","to":"CVE-2026-113795","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["pypdf/_configuration.py"],"commits":["https://github.com/py-pdf/pypdf/commit/18bd2981a74479483a0b9507602c58a63d6c9b12","https://github.com/py-pdf/pypdf/commit/80a84d4be6022d910874ccb0d2365400f3f0e185"],"basis":"shared function","functions":["Configuration"]}]},{"from":"CVE-2026-113791","to":"CVE-2026-119204","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["pypdf/_configuration.py"],"commits":["https://github.com/py-pdf/pypdf/commit/18bd2981a74479483a0b9507602c58a63d6c9b12","https://github.com/py-pdf/pypdf/commit/ea4ac663133f1b3de1d7a8f2e6fa239802fde79e"],"basis":"shared function","functions":["Configuration"]}]},{"from":"CVE-2026-113791","to":"CVE-2026-119205","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/18bd2981a74479483a0b9507602c58a63d6c9b12","https://github.com/py-pdf/pypdf/commit/f176db1a1f7f9af3e472e69a843ef1175653b044"],"basis":"shared function","functions":["_clone"]}]},{"from":"CVE-2026-113791","to":"CVE-2026-119207","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/18bd2981a74479483a0b9507602c58a63d6c9b12","https://github.com/py-pdf/pypdf/commit/64270258c0eced720f7960aecf8cef31afd39f8d"],"basis":"shared function","functions":["_clone","read_from_stream"]}]}],"packageHistory":[{"cve":"CVE-2026-113792","published":"2026-10-21","fixed":"6.20.1","kev":false,"link":{"from":"CVE-2026-113792","to":"CVE-2026-113791","relation":"successor","confidence":"high","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:pypdf","fromFixed":"6.20.1","toFixed":"6.21.0","daysApart":0},{"kind":"same-code","provenance":"machine","files":["pypdf/generic/_data_structures.py"],"commits":["https://github.com/py-pdf/pypdf/commit/18bd2981a74479483a0b9507602c58a63d6c9b12","https://github.com/py-pdf/pypdf/commit/c9c35b4471c2eb5fe078094f6c816e69d4ed25a0"],"basis":"shared file"}]}},{"cve":"CVE-2026-113793","published":"2026-10-21","fixed":"6.20.1","kev":false},{"cve":"CVE-2026-113789","published":"2026-10-21","fixed":"6.21.0","kev":false},{"cve":"CVE-2026-113790","published":"2026-10-21","fixed":"6.21.0","kev":false},{"cve":"CVE-2026-113791","published":"2026-10-21","fixed":"6.21.0","kev":false},{"cve":"CVE-2026-113786","published":"2026-10-21","fixed":"6.21.1","kev":false},{"cve":"CVE-2026-115572","published":"2026-10-23","fixed":"6.21.2","kev":false},{"cve":"CVE-2026-115580","published":"2026-10-23","fixed":"6.21.2","kev":false}],"package":"PyPI:pypdf"}}