CVE-2026-102994: CWE-400: Uncontrolled Resource Consumption in py-pdf pypdf
pypdf is a free and open-source pure-python PDF library. Prior to 6.18.0, a crafted PDF containing indirect-object identifiers or generation-number tokens that continue for a long time without whitespace can cause pypdf/_reader.py and pypdf/generic/_base.py to scan excessive input through read_until_whitespace, resulting in long runtimes and application unavailability. This issue is fixed in version 6.18.0.
AI Analysis
Technical Summary
The pypdf library versions before 6.18.0 are vulnerable to uncontrolled resource consumption (CWE-400) due to crafted PDF files that contain indirect-object identifiers or generation-number tokens that continue for a long time without whitespace. This causes the functions read_until_whitespace in pypdf/_reader.py and pypdf/generic/_base.py to scan excessive input, resulting in prolonged processing times and potential denial of service through application unavailability. The vulnerability is addressed in version 6.18.0.
Potential Impact
An attacker can cause the pypdf library to consume excessive CPU resources by providing a specially crafted PDF file, leading to long runtimes and potential application unavailability. This constitutes a denial-of-service condition. There is no indication of privilege escalation or data compromise from the provided data.
Mitigation Recommendations
Upgrade to pypdf version 6.18.0 or later, where this vulnerability is fixed. No additional mitigation is required once the update is applied.
CVE-2026-102994: CWE-400: Uncontrolled Resource Consumption in py-pdf pypdf
Description
pypdf is a free and open-source pure-python PDF library. Prior to 6.18.0, a crafted PDF containing indirect-object identifiers or generation-number tokens that continue for a long time without whitespace can cause pypdf/_reader.py and pypdf/generic/_base.py to scan excessive input through read_until_whitespace, resulting in long runtimes and application unavailability. This issue is fixed in version 6.18.0.
CVSS v4.0
Score 8.7high
Affected software
py-pdf
pypdf
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
Technical Analysis
The pypdf library versions before 6.18.0 are vulnerable to uncontrolled resource consumption (CWE-400) due to crafted PDF files that contain indirect-object identifiers or generation-number tokens that continue for a long time without whitespace. This causes the functions read_until_whitespace in pypdf/_reader.py and pypdf/generic/_base.py to scan excessive input, resulting in prolonged processing times and potential denial of service through application unavailability. The vulnerability is addressed in version 6.18.0.
Potential Impact
An attacker can cause the pypdf library to consume excessive CPU resources by providing a specially crafted PDF file, leading to long runtimes and potential application unavailability. This constitutes a denial-of-service condition. There is no indication of privilege escalation or data compromise from the provided data.
Mitigation Recommendations
Upgrade to pypdf version 6.18.0 or later, where this vulnerability is fixed. No additional mitigation is required once the update is applied.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-09-29T20:46:08.334Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6abd6b1e2a4e24523d869f91
Added to database: 09/30/2026, 20:03:42 UTC
Last enriched: 09/30/2026, 20:18:15 UTC
Last updated: 10/01/2026, 02:32:43 UTC
Views: 8
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.