CVE-2026-102996
HIGH 8.7CVSS 4.0pypdf: Possible large memory usage when parsing font data
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.
- Published
- 30 Sep 2026
- Last modified
- 2 Nov 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-400
- Also known as
- GHSA-g9cg-prrw-2r8qPYSEC-2026-4155
- Sources
- NVDJSONOSV GHSA-g9cg-prrw-2r8qJSONOSV PYSEC-2026-4155JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | HIGH 8.7 | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | 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 | |
| OSV | PyPA | CVSS 4.0 | 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 | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | py-pdf | pypdfcpe:2.3:a:py-pdf:pypdf:*:*:*:*:*:*:*:* |
< 6.18.1 | 6.18.1 |
| OSV | PyPI | pypdf | < 6.18.1 | 6.18.1 |
References
- https://github.com/py-pdf/pypdf/commit/0fb26eb8cdd01c44b3b2c9fe8329751be2f7cfd5 · Patch, WEB
- https://github.com/py-pdf/pypdf/pull/4072 · Patch, Issue Tracking, WEB
- https://github.com/py-pdf/pypdf/releases/tag/6.18.1 · Release Notes, WEB
- https://github.com/py-pdf/pypdf/security/advisories/GHSA-g9cg-prrw-2r8q · Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-102996 · ADVISORY
- https://github.com/py-pdf/pypdf · PACKAGE
- https://pypi.org/project/pypdf · PACKAGE
- https://github.com/advisories/GHSA-g9cg-prrw-2r8q · ADVISORY
History
- 25 Nov 2026 21:22 UTC · NVD: first stored (published 30 Sep 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 1 Oct 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 1 Oct 2026)