Skip to main content

CVE-2026-113793: CWE-835: Loop with Unreachable Exit Condition ('Infinite Loop') in py-pdf pypdf

0
Medium
VulnerabilityCVE-2026-113793cvecve-2026-113793cwe-835
Published: 10/21/2026 (10/21/2026, 15:57:55 UTC)
Source: CVE Database V5
Vendor/Project: py-pdf
Product: pypdf

Description

CVE-2026-113793 is a medium severity vulnerability in the py-pdf pypdf library prior to version 6.20.1. It involves an infinite loop triggered when removing an object from a crafted cyclic PDF tree, such as an outline item, which can block the current process. This issue has been fixed in version 6.20.1.

CVSS v4.0

Score 6.0medium

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

Affected software

py-pdf

pypdf

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

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: 10/21/2026, 16:30:27 UTC

Technical Analysis

The pypdf library, a pure-Python PDF processing tool, contained a vulnerability classified as CWE-835 (Loop with Unreachable Exit Condition) in versions before 6.20.1. When an object is removed from a specially crafted cyclic PDF tree structure, the code can enter an infinite loop, causing the process to hang indefinitely. This flaw was addressed and fixed in version 6.20.1.

Potential Impact

An attacker can craft a malicious PDF with a cyclic tree structure that, when processed by vulnerable versions of pypdf, causes the application to enter an infinite loop and become unresponsive. This results in a denial of service by blocking the current process. There is no indication of code execution or data corruption from the provided data.

Mitigation Recommendations

Upgrade pypdf to version 6.20.1 or later, where this infinite loop issue has been fixed. No other mitigation is required as the vendor has provided an official fix.

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-10-20T17:39:41.373Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 6ad8e5564d27ba8daac24090

Added to database: 10/21/2026, 16:16:22 UTC

Last enriched: 10/21/2026, 16:30:27 UTC

Last updated: 10/21/2026, 17:15:43 UTC

Views: 4

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