Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

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

0
Medium
VulnerabilityCVE-2026-33699cvecve-2026-33699cwe-835
Published: Thu Mar 26 2026 (03/26/2026, 23:58:42 UTC)
Source: CVE Database V5
Vendor/Project: py-pdf
Product: pypdf

Description

CVE-2026-33699 is a medium severity vulnerability in the py-pdf pypdf library versions prior to 6. 9. 2. It involves an infinite loop caused by a crafted PDF file when read in non-strict mode. This vulnerability can cause denial of service by making applications using vulnerable pypdf versions hang or become unresponsive. Exploitation does not require authentication or user interaction and can be triggered remotely by processing a malicious PDF. The issue has been fixed in version 6. 9. 2, and users unable to upgrade should manually apply the patch. No known exploits are currently reported in the wild.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 03/27/2026, 01:00:14 UTC

Technical Analysis

The vulnerability identified as CVE-2026-33699 affects the py-pdf pypdf library, a widely used pure-Python PDF processing tool. Versions prior to 6.9.2 contain a flaw classified under CWE-835 (Loop with Unreachable Exit Condition), where an attacker can craft a specially designed PDF file that triggers an infinite loop during parsing when the library is used in non-strict mode. This infinite loop occurs because the exit condition for a loop in the PDF parsing logic is never met, causing the application to hang indefinitely. The vulnerability can be exploited remotely by supplying a malicious PDF to any system or application that uses the vulnerable pypdf version to process PDFs without strict mode enabled. The CVSS 4.0 base score is 4.6 (medium severity), reflecting that the attack vector is network-based, requires no privileges or user interaction, but results only in availability impact (denial of service). The vulnerability does not affect confidentiality or integrity. The issue was addressed in pypdf version 6.9.2, which corrects the loop condition to ensure proper termination. No public exploits have been reported, but the vulnerability poses a risk to any automated PDF processing pipeline using vulnerable versions.

Potential Impact

The primary impact of this vulnerability is denial of service (DoS) through resource exhaustion or application hang. Organizations that rely on pypdf for automated PDF processing, such as document management systems, web services handling PDF uploads, or data extraction tools, may experience service disruptions or degraded performance if exposed to crafted malicious PDFs. This can affect availability of critical services, potentially causing operational delays or downtime. Since exploitation requires no authentication or user interaction, any exposed PDF processing endpoint is at risk. Although the vulnerability does not allow data leakage or code execution, the DoS impact can be significant in high-volume or security-sensitive environments. Additionally, attackers could use this as part of a multi-stage attack to distract or disrupt defenses. The lack of known exploits reduces immediate risk but does not eliminate the threat, especially as the vulnerability is publicly known and patch available.

Mitigation Recommendations

The most effective mitigation is to upgrade all instances of pypdf to version 6.9.2 or later, where the infinite loop issue is fixed. For environments where immediate upgrade is not feasible, users should manually apply the patch changes from the official fix to correct the loop exit condition. Additionally, consider enabling strict mode when reading PDFs, as the vulnerability requires non-strict mode to be exploitable. Implement input validation and filtering to detect and block suspicious or malformed PDFs before processing. Rate limiting and resource usage monitoring on PDF processing services can help detect and mitigate potential DoS attempts. Employ sandboxing or isolation techniques for PDF parsing components to limit impact if a hang occurs. Regularly review and update dependencies to minimize exposure to known vulnerabilities.

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-03-23T17:06:05.746Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 69c5d2fe3c064ed76ff40481

Added to database: 3/27/2026, 12:44:46 AM

Last enriched: 3/27/2026, 1:00:14 AM

Last updated: 3/27/2026, 2:03:43 AM

Views: 6

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