CVE-2026-113794: CWE-835: Loop with Unreachable Exit Condition ('Infinite Loop') in py-pdf pypdf
Description
A vulnerability in pypdf versions prior to 6.20.0 allows an attacker to craft an incomplete PDF that causes the library to enter an infinite loop due to mishandling an unexpected end of file inside a standard cross-reference table. This issue is fixed in version 6.20.0.
CVSS v4.0
Score 6.0medium
Affected software
py-pdf
pypdf
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 loop with an unreachable exit condition (CWE-835) in versions before 6.20.0. Specifically, when processing a crafted incomplete PDF that ends unexpectedly inside a standard cross-reference table, pypdf mishandles the end-of-file condition and enters an infinite loop. This flaw was addressed and fixed in version 6.20.0.
Potential Impact
An attacker can cause a denial of service by triggering an infinite loop in pypdf when processing a maliciously crafted incomplete PDF file. This may lead to resource exhaustion or application hang. There is no indication of code execution or data disclosure from the provided information.
Mitigation Recommendations
Upgrade to pypdf version 6.20.0 or later, where this infinite loop vulnerability has been fixed. No other mitigations are indicated or required.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-10-20T17:39:41.373Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6ad8e5564d27ba8daac24091
Added to database: 10/21/2026, 16:16:22 UTC
Last enriched: 10/21/2026, 16:30:24 UTC
Last updated: 10/21/2026, 17:15:42 UTC
Views: 3
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.