CVE-2026-102996

pypdf: Possible large memory usage when parsing font data

HIGH
7.5
CVSS Score
Published: September 30, 2026 at 08:03 PM UTC
Updated: October 5, 2026 at 03:13 PM UTC
2 products affected across 2 vendorsPypdfPypdf

Using pypdf by py-pdf?

Get instant alerts when new vulnerabilities affect pypdf - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.5
Exploit prediction
EPSS 0.3%
SSVC
No known exploit

Description

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 6.18.1
Affected range stops below 6.18.1, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

References (4)

x_refsource_CONFIRMVendor Advisory
Source: cverecord
https://github.com/py-pdf/pypdf/security/advisories/GHSA-g9cg-prrw-2r8q
x_refsource_MISCPatchIssue Tracking
Source: cverecord
https://github.com/py-pdf/pypdf/pull/4072
x_refsource_MISCRelease Notes
Source: cverecord
https://github.com/py-pdf/pypdf/releases/tag/6.18.1

SSVC — Action Prioritization

SSVCNo known exploitAutomatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-400

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card