{"id":"CVE-2026-71870","published":"2026-08-07T19:28:26Z","modified":"2026-08-10T12:24:22Z","title":"pypdf: Possible large memory usage for large /ToUnicode streams","vendor":"py-pdf","product":"pypdf","tier":"tail","description":{"text":"pypdf is a free and open-source pure-python PDF library. Prior to 6.15.0, a crafted PDF can cause large memory consumption when pypdf/_cmap.py function parse_bfrange parses unusually large source-code or destination-string tokens in a font /ToUnicode CMap during text extraction. This issue is fixed in 6.15.0.","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.00125,"percentile":0.02212,"provenance":"source"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"references":[{"url":"https://github.com/py-pdf/pypdf/security/advisories/GHSA-fp3f-mc75-235c","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/py-pdf/pypdf/pull/3944","tags":["x_refsource_MISC"]},{"url":"https://github.com/py-pdf/pypdf/commit/afba8080e19d29a3c256a742b340995e695b35aa","tags":["x_refsource_MISC"]},{"url":"https://github.com/py-pdf/pypdf/releases/tag/6.15.0","tags":["x_refsource_MISC"]}],"priority":{"score":3.8,"factors":[{"name":"EPSS percentile","points":0.44},{"name":"CVSS severity","points":3.36}]},"vendorSlug":"py-pdf","affectedVersions":[{"vendor":"py-pdf","product":"pypdf","versions":["< 6.15.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-08-10T12:04:06.963067Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"pypdf","vulnerableRanges":["<6.15.0"],"patched":["6.15.0"],"from":["GHSA-fp3f-mc75-235c","PYSEC-2026-3655"],"provenance":"source"}],"summary":{"text":"The flaw is in the parse_bfrange function of the pypdf Python PDF library, at pypdf/_cmap.py, which causes large memory consumption when it parses unusually large tokens in a font /ToUnicode CMap during text extraction. An attacker can exploit it by supplying a crafted PDF to be processed by a vulnerable pypdf version (prior to 6.15.0), which requires no authentication and only local access, with a user having to open or process the file.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:22:21Z"},"euvd":{"id":"EUVD-2026-54615","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-py-pdf-pypdf-cve-2026-27025","parents":[{"from":"CVE-2026-27025","to":"CVE-2026-71870","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["pypdf/_cmap.py"],"commits":["https://github.com/py-pdf/pypdf/commit/77d7b8d7cfbe8dd179858dfa42666f73fc6e57a2","https://github.com/py-pdf/pypdf/commit/afba8080e19d29a3c256a742b340995e695b35aa"],"basis":"shared function","functions":["parse_bfrange","process_cm_line"]}]}],"children":[{"from":"CVE-2026-71870","to":"CVE-2026-102995","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["pypdf/_cmap.py"],"commits":["https://github.com/py-pdf/pypdf/commit/319d0b823ce2c311a2435e9fd93c13994d32bb51","https://github.com/py-pdf/pypdf/commit/afba8080e19d29a3c256a742b340995e695b35aa"],"basis":"shared function","functions":["parse_bfrange","process_cm_line"]},{"kind":"similar","provenance":"machine","score":0.59,"basis":"same product + CWE + description similarity"}]}],"packageHistory":[{"cve":"CVE-2026-59936","published":"2026-07-08","fixed":"6.14.1","kev":false},{"cve":"CVE-2026-59935","published":"2026-07-08","fixed":"6.14.2","kev":false,"link":{"from":"CVE-2026-59935","to":"CVE-2026-71870","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:pypdf","fromFixed":"6.14.2","toFixed":"6.15.0","daysApart":30}]}},{"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},{"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}],"package":"PyPI:pypdf"}}