{"id":"CVE-2026-102995","published":"2026-09-30T20:01:43Z","modified":"2026-10-01T18:50:37Z","title":"pypdf: Possible large memory usage for large /ToUnicode streams (Follow-up 2)","vendor":"py-pdf","product":"pypdf","tier":"tail","description":{"text":"pypdf is a free and open-source pure-python PDF library. Prior to 6.18.1, a crafted PDF can place unusually large source-code or destination-string tokens in a font /ToUnicode mapping, causing pypdf/_cmap.py parse_bfchar to decode and retain oversized values during operations such as text extraction and consume excessive memory. This is a second follow-up to earlier /ToUnicode resource-consumption fixes and is limited to the remaining token-length path. This issue is fixed in version 6.18.1.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.7,"severity":"HIGH","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0034,"percentile":0.28068,"provenance":"source"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"references":[{"url":"https://github.com/py-pdf/pypdf/security/advisories/GHSA-fp3h-c4fm-7vvf","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/py-pdf/pypdf/pull/4071","tags":["x_refsource_MISC"]},{"url":"https://github.com/py-pdf/pypdf/commit/319d0b823ce2c311a2435e9fd93c13994d32bb51","tags":["x_refsource_MISC"]},{"url":"https://github.com/py-pdf/pypdf/releases/tag/6.18.1","tags":["x_refsource_MISC"]}],"priority":{"score":11.7,"factors":[{"name":"EPSS percentile","points":5.61},{"name":"CVSS severity","points":6.09}]},"vendorSlug":"py-pdf","affectedVersions":[{"vendor":"py-pdf","product":"pypdf","versions":["< 6.18.1"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-10-01T18:50:23.022437Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"pypdf","vulnerableRanges":["<6.18.1"],"patched":["6.18.1"],"from":["GHSA-fp3h-c4fm-7vvf","PYSEC-2026-4154"],"provenance":"source"}],"summary":{"text":"The pypdf Python PDF library, in its parse_bfchar routine in pypdf/_cmap.py, fails to limit the length of source-code and destination-string tokens in a font /ToUnicode mapping, so oversized values are decoded and retained during operations such as text extraction. An attacker who supplies a crafted PDF can exhaust memory during processing, with no network access, authentication, user interaction, or special configuration required beyond the victim processing that file.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:49:37Z"},"euvd":{"id":"EUVD-2026-90367","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-py-pdf-pypdf-cve-2026-27025","parents":[{"from":"CVE-2026-27025","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/77d7b8d7cfbe8dd179858dfa42666f73fc6e57a2"],"basis":"shared function","functions":["parse_bfrange","process_cm_line"]}]},{"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-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},{"cve":"CVE-2026-102994","published":"2026-09-30","fixed":"6.18.0","kev":false,"link":{"from":"CVE-2026-102994","to":"CVE-2026-102995","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:pypdf","fromFixed":"6.18.0","toFixed":"6.18.1","daysApart":0}]}},{"cve":"CVE-2026-102995","published":"2026-09-30","fixed":"6.18.1","kev":false},{"cve":"CVE-2026-102996","published":"2026-09-30","fixed":"6.18.1","kev":false},{"cve":"CVE-2026-102997","published":"2026-09-30","fixed":"6.18.1","kev":false},{"cve":"CVE-2026-102998","published":"2026-09-30","fixed":"6.19.0","kev":false}],"package":"PyPI:pypdf"}}