Skip to main content
EPSS 0.1%top 97%

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

0
Medium
Published: 08/24/2026 (08/24/2026, 00:00:00 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 large memory consumption when pypdf/_cmap.py function parse_bfrange parses unusually large source-code or destination-string tokens in a font /ToUnicode CMap 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:00 UTC

Technical Analysis

The pypdf library, a pure-python PDF processing tool, contains a vulnerability (CWE-400) related to uncontrolled resource consumption. Specifically, in versions before 6.15.0, the parse_bfrange function in pypdf/_cmap.py can consume excessive memory when processing crafted PDF files with unusually large source-code or destination-string tokens in font /ToUnicode CMaps during text extraction. This flaw can cause large memory consumption, potentially impacting application stability or availability. The vulnerability has been addressed and fixed in pypdf version 6.15.0.

Potential Impact

An attacker can craft a PDF file that triggers excessive memory consumption in affected versions of pypdf when text extraction is performed. This may lead to denial of service conditions due to resource exhaustion. There is no indication of privilege escalation, code execution, or data disclosure. No known exploits are reported in the wild.

Mitigation Recommendations

Upgrade to pypdf version 6.15.0 or later, where this vulnerability is fixed. No other mitigation or workaround is documented. Patch status is confirmed fixed in 6.15.0.

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.524Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 6a76350bbf8831d5390b01b3

Added to database: 08/07/2026, 19:42:03 UTC

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

Last updated: 09/21/2026, 22:01:37 UTC

Views: 64

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