CVE-2026-102995

pypdf: Possible large memory usage for large /ToUnicode streams (Follow-up 2)

HIGH
7.5
CVSS Score
Published: September 30, 2026 at 08:01 PM UTC
Updated: October 5, 2026 at 03:23 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 place unusually large source-code or destination-string tokens in a font /ToUnicode mapping, causing pypdf/_cmap.py parse_bfchar to decode and retain oversized values during operations such as text extraction and consume excessive memory. This is a second follow-up to earlier /ToUnicode resource-consumption fixes and is limited to the remaining token-length path. 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-fp3h-c4fm-7vvf
x_refsource_MISCPatchIssue Tracking
Source: cverecord
https://github.com/py-pdf/pypdf/pull/4071
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