Skip to main content
EPSS 0.1%top 97%

CVE-2026-71852: CWE-834: Excessive Iteration in py-pdf pypdf

0
Medium
Published: 08/07/2026 (08/07/2026, 18:53:46 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.15.0, a crafted PDF can cause long runtimes and large memory consumption when pypdf/_font.py function Font._collect_cid_character_widths expands unusually large CID font /W width ranges or excessive width entries during text extraction. This issue is fixed in 6.15.0.

CVSS v4.0

Score 4.8medium

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vuln. Confidentiality
None
Vuln. Integrity
None
Vuln. Availability
Low
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N

Affected software

py-pdf

pypdf

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

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: 08/15/2026, 15:35:55 UTC

Technical Analysis

The vulnerability in pypdf (CVE-2026-71852) arises from the Font._collect_cid_character_widths function expanding unusually large CID font /W width ranges or excessive width entries during text extraction. This leads to excessive iteration, resulting in long processing times and increased memory consumption. The flaw affects all versions prior to 6.15.0 and has been addressed in that release.

Potential Impact

An attacker can craft a malicious PDF that triggers excessive iteration in the font width collection logic, causing the pypdf library to consume excessive CPU and memory resources. This can degrade performance or potentially cause denial of service conditions in applications using vulnerable versions of pypdf for PDF text extraction.

Mitigation Recommendations

Upgrade to pypdf version 6.15.0 or later, where this issue is fixed. No other mitigations are specified or required.

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-08-07T18:26:53.523Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 6a772658bf8831d539846be1

Added to database: 08/08/2026, 12:51:36 UTC

Last enriched: 08/15/2026, 15:35:55 UTC

Last updated: 09/23/2026, 01:47:44 UTC

Views: 74

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