{"id":"CVE-2026-102996","published":"2026-09-30T20:03:55Z","modified":"2026-09-30T20:48:39Z","title":"pypdf: Possible large memory usage when parsing font data","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 provide a TrueType or Type1 simple font with an unusually large /Widths array, causing pypdf/_font.py Font._collect_tt_t1_character_widths to process entries beyond the 256 character codes meaningful for a simple font and consume excessive memory during operations such as text extraction. 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.0062,"percentile":0.44005,"provenance":"source"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"references":[{"url":"https://github.com/py-pdf/pypdf/security/advisories/GHSA-g9cg-prrw-2r8q","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/py-pdf/pypdf/pull/4072","tags":["x_refsource_MISC"]},{"url":"https://github.com/py-pdf/pypdf/commit/0fb26eb8cdd01c44b3b2c9fe8329751be2f7cfd5","tags":["x_refsource_MISC"]},{"url":"https://github.com/py-pdf/pypdf/releases/tag/6.18.1","tags":["x_refsource_MISC"]}],"priority":{"score":14.9,"factors":[{"name":"EPSS percentile","points":8.8},{"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-09-30T20:48:29.732492Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"pypdf","vulnerableRanges":["<6.18.1"],"patched":["6.18.1"],"from":["GHSA-g9cg-prrw-2r8q","PYSEC-2026-4155"],"provenance":"source"}],"summary":{"text":"pypdf, the pure-Python PDF library from py-pdf, has a flaw in how its font parsing code (Font._collect_tt_t1_character_widths in pypdf/_font.py) handles TrueType and Type1 simple fonts with an unusually large /Widths array, where entries beyond the 256 meaningful character codes are still processed. An attacker can craft a PDF that makes pypdf consume excessive memory during operations such as text extraction, and this requires only that the attacker supply a malicious PDF for the application to parse, with no authentication, configuration or user interaction needed.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:49:38Z"},"euvd":{"id":"EUVD-2026-90368","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-py-pdf-pypdf-cve-2026-71852","parents":[{"from":"CVE-2026-71852","to":"CVE-2026-102996","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["pypdf/_font.py"],"commits":["https://github.com/py-pdf/pypdf/commit/0fb26eb8cdd01c44b3b2c9fe8329751be2f7cfd5","https://github.com/py-pdf/pypdf/commit/51cb6acf9e8a35b77e90b4d87d28fe3e1416d7d7"],"basis":"shared function","functions":["_collect_tt_t1_character_widths"]}]}],"packageHistory":[{"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-102996","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,"link":{"from":"CVE-2026-102996","to":"CVE-2026-102998","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:pypdf","fromFixed":"6.18.1","toFixed":"6.19.0","daysApart":0}]}},{"cve":"CVE-2026-102999","published":"2026-09-30","fixed":"6.19.0","kev":false,"link":{"from":"CVE-2026-102996","to":"CVE-2026-102999","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:pypdf","fromFixed":"6.18.1","toFixed":"6.19.0","daysApart":0}]}},{"cve":"CVE-2026-103000","published":"2026-09-30","fixed":"6.19.0","kev":false,"link":{"from":"CVE-2026-102996","to":"CVE-2026-103000","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:pypdf","fromFixed":"6.18.1","toFixed":"6.19.0","daysApart":0}]}}],"package":"PyPI:pypdf"}}