Skip to content
Heist/ feed
High

pypdf: Possible large memory usage when parsing font data

Type: advisorySource: Official CVE List1 source record

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.

Announced Source revision 1
Original source ↗

CVE-2026-102996

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2026-102996

pypdf

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "vendor": "py-pdf",
    "product": "pypdf",
    "versions": [
      {
        "status": "affected",
        "version": "< 6.18.1"
      }
    ]
  }
]
Related CVEs
CVE-2026-102996

Source reference: /cveMetadata/cveId

Publisher severity

high

Source reference: /containers/cna/metrics

Event
#4955 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement