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.
References
| Link | Resource |
|---|---|
| https://github.com/py-pdf/pypdf/commit/0fb26eb8cdd01c44b3b2c9fe8329751be2f7cfd5 | Patch |
| https://github.com/py-pdf/pypdf/pull/4072 | Patch Issue Tracking |
| https://github.com/py-pdf/pypdf/releases/tag/6.18.1 | Release Notes |
| https://github.com/py-pdf/pypdf/security/advisories/GHSA-g9cg-prrw-2r8q | Vendor Advisory |
Configurations
History
05 Oct 2026, 15:13
| Type | Values Removed | Values Added |
|---|---|---|
| CPE | cpe:2.3:a:pypdf_project:pypdf:*:*:*:*:*:*:*:* | |
| References | () https://github.com/py-pdf/pypdf/commit/0fb26eb8cdd01c44b3b2c9fe8329751be2f7cfd5 - Patch | |
| References | () https://github.com/py-pdf/pypdf/pull/4072 - Patch, Issue Tracking | |
| References | () https://github.com/py-pdf/pypdf/releases/tag/6.18.1 - Release Notes | |
| References | () https://github.com/py-pdf/pypdf/security/advisories/GHSA-g9cg-prrw-2r8q - Vendor Advisory | |
| CVSS |
v2 : v3 : |
v2 : unknown
v3 : 7.5 |
| First Time |
Pypdf Project
Pypdf Project pypdf |
30 Sep 2026, 21:17
| Type | Values Removed | Values Added |
|---|---|---|
| New CVE |
Information
Published : 2026-09-30 21:17
Updated : 2026-10-05 15:13
NVD link : CVE-2026-102996
Mitre link : CVE-2026-102996
CVE.ORG link : CVE-2026-102996
JSON object : View
Products Affected
pypdf_project
- pypdf
CWE
CWE-400
Uncontrolled Resource Consumption
