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.
{
"cna_assigner": "GitHub_M",
"cwe_ids": [
"CWE-400"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/102xxx/CVE-2026-102996.json"
}{
"extracted_events": [
{
"cpe": "cpe:2.3:a:pypdf_project:pypdf:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "6.18.1"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "0fb26eb8cdd01c44b3b2c9fe8329751be2f7cfd5"
}
],
"source": "REFERENCES_COMMIT"
},
{
"original_tag": "6.18.1",
"range": [
{
"fixed": "caf8cde51a9c698c98f50a1930e3dffba222bb4e"
}
],
"source": "REFERENCES_TAG"
}
]
}