CVE-2026-71870: CWE-400: Uncontrolled Resource Consumption in py-pdf pypdf
CVE-2026-71870 is a medium severity vulnerability in the pypdf library prior to version 6.15.0. It involves uncontrolled resource consumption due to parsing unusually large tokens in a font /ToUnicode CMap during text extraction, which can cause large memory usage. This issue has been fixed in version 6.15.0.
AI Analysis
Technical Summary
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 can lead to large memory consumption, potentially impacting application stability or availability. The vulnerability is addressed in pypdf version 6.15.0.
Potential Impact
An attacker can craft a PDF file that triggers large memory consumption during text extraction by exploiting the parse_bfrange function's handling of large tokens in the /ToUnicode CMap. This may cause performance degradation or denial of service due to resource exhaustion. There is no indication of privilege escalation or code execution. No known exploits are reported in the wild.
Mitigation Recommendations
Upgrade to pypdf version 6.15.0 or later, where this issue is fixed. Since no official patch advisory is provided, users should verify the version upgrade to ensure remediation. Avoid processing untrusted PDF files with vulnerable versions until patched.
CVE-2026-71870: CWE-400: Uncontrolled Resource Consumption in py-pdf pypdf
Description
CVE-2026-71870 is a medium severity vulnerability in the pypdf library prior to version 6.15.0. It involves uncontrolled resource consumption due to parsing unusually large tokens in a font /ToUnicode CMap during text extraction, which can cause large memory usage. This issue has been fixed in version 6.15.0.
CVSS v4.0
Score 4.8medium
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
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 can lead to large memory consumption, potentially impacting application stability or availability. The vulnerability is addressed in pypdf version 6.15.0.
Potential Impact
An attacker can craft a PDF file that triggers large memory consumption during text extraction by exploiting the parse_bfrange function's handling of large tokens in the /ToUnicode CMap. This may cause performance degradation or denial of service due to resource exhaustion. There is no indication of privilege escalation or code execution. No known exploits are reported in the wild.
Mitigation Recommendations
Upgrade to pypdf version 6.15.0 or later, where this issue is fixed. Since no official patch advisory is provided, users should verify the version upgrade to ensure remediation. Avoid processing untrusted PDF files with vulnerable versions until patched.
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
- Remediation Level
- null
Threat ID: 6a76350bbf8831d5390b01b3
Added to database: 08/07/2026, 19:42:03 UTC
Last enriched: 08/07/2026, 20:00:00 UTC
Last updated: 08/07/2026, 20:01:06 UTC
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.