Skip to main content

CVE-2026-102996: CWE-400: Uncontrolled Resource Consumption in py-pdf pypdf

0
High
VulnerabilityCVE-2026-102996cvecve-2026-102996cwe-400
Published: 09/30/2026 (09/30/2026, 20:03:55 UTC)
Source: CVE Database V5
Vendor/Project: py-pdf
Product: pypdf

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.

CVSS v4.0

Score 8.7high

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
None
Vuln. Integrity
None
Vuln. Availability
High
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

py-pdf

pypdf

Affected versions
<6.18.1
pypdf
pkg:pypi/pypdf
Affected versions
<6.18.1

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/30/2026, 20:48:15 UTC

Technical Analysis

The vulnerability exists in pypdf, a pure-Python PDF library, where a crafted PDF can specify a TrueType or Type1 simple font with an excessively large /Widths array. The function Font._collect_tt_t1_character_widths processes more entries than the 256 character codes meaningful for a simple font, resulting in excessive memory consumption. This flaw can be triggered during operations such as text extraction. The issue is resolved in pypdf version 6.18.1.

Potential Impact

An attacker can cause pypdf to consume excessive memory by providing a crafted PDF with a large /Widths array in a simple font. This may lead to denial of service or application instability during PDF processing tasks like text extraction. There is no indication of privilege escalation or code execution.

Mitigation Recommendations

Upgrade pypdf to version 6.18.1 or later, where this vulnerability is fixed. No other mitigation is required as the issue is resolved in the official patch.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-09-29T20:46:08.335Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 6abd72532a4e24523d8ec0e2

Added to database: 09/30/2026, 20:34:27 UTC

Last enriched: 09/30/2026, 20:48:15 UTC

Last updated: 10/01/2026, 04:54:01 UTC

Views: 11

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses