{"id":"CVE-2026-27025","published":"2026-02-20T21:11:20Z","modified":"2026-02-24T18:40:02Z","title":"pypdf has possible long runtimes/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.7.1, an attacker who uses this vulnerability can craft a PDF which leads to long runtimes and large memory consumption. This requires parsing the /ToUnicode entry of a font with unusually large values, for example during text extraction. This vulnerability is fixed in 6.7.1.","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.00219,"percentile":0.0718,"provenance":"source"},"cwes":[{"id":"CWE-834","name":"Excessive Iteration"}],"references":[{"url":"https://github.com/py-pdf/pypdf/security/advisories/GHSA-wgvp-vg3v-2xq3","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/py-pdf/pypdf/pull/3646","tags":["x_refsource_MISC"]},{"url":"https://github.com/py-pdf/pypdf/commit/77d7b8d7cfbe8dd179858dfa42666f73fc6e57a2","tags":["x_refsource_MISC"]},{"url":"https://github.com/py-pdf/pypdf/releases/tag/6.7.1","tags":["x_refsource_MISC"]}],"priority":{"score":6.3,"factors":[{"name":"EPSS percentile","points":1.44},{"name":"CVSS severity","points":4.83}]},"vendorSlug":"py-pdf","affectedVersions":[{"vendor":"py-pdf","product":"pypdf","versions":["< 6.7.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-02-24T18:39:43.799501Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"pypdf","vulnerableRanges":["<6.7.1"],"patched":["6.7.1"],"from":["GHSA-wgvp-vg3v-2xq3","PYSEC-2026-3024"],"provenance":"source"}],"summary":{"text":"pypdf, the pure-Python PDF library from py-pdf, has a flaw in how it parses the /ToUnicode entry of a font, where unusually large values can cause excessive iteration. An attacker who can supply a crafted PDF for the library to process, such as during text extraction, needs no privileges or user interaction and only local access to the affected process, and can drive up runtime and memory consumption in the parsing component.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:15:46Z"},"euvd":{"id":"EUVD-2026-7788","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-py-pdf-pypdf-cve-2026-27025","children":[{"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-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"]}]}],"packageHistory":[{"cve":"CVE-2026-22691","published":"2026-01-10","fixed":"6.6.0","kev":false},{"cve":"CVE-2026-24688","published":"2026-01-27","fixed":"6.6.2","kev":false,"link":{"from":"CVE-2026-24688","to":"CVE-2026-27025","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:pypdf","fromFixed":"6.6.2","toFixed":"6.7.1","daysApart":24}]}},{"cve":"CVE-2026-27024","published":"2026-02-20","fixed":"6.7.1","kev":false},{"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},{"cve":"CVE-2026-27888","published":"2026-02-26","fixed":"6.7.3","kev":false}],"package":"PyPI:pypdf"}}