Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-27024

CVE-2026-27024: Pypdf_project Pypdf DOS Vulnerability

CVE-2026-27024 is a denial of service flaw in Pypdf_project Pypdf that allows attackers to craft malicious PDFs causing infinite loops. This post covers the technical details, affected versions, and mitigation steps.

Published: February 27, 2026

CVE-2026-27024 Overview

CVE-2026-27024 is a Denial of Service vulnerability affecting pypdf, a free and open-source pure-python PDF library. Prior to version 6.7.1, an attacker can craft a malicious PDF document that triggers an infinite loop when the library attempts to access the children of a TreeObject, such as when processing document outlines. This vulnerability can cause applications using pypdf to hang indefinitely, consuming system resources and rendering the application unresponsive.

Critical Impact

Maliciously crafted PDF files can cause applications using pypdf to enter an infinite loop, leading to Denial of Service conditions that affect application availability and system resources.

Affected Products

  • pypdf versions prior to 6.7.1
  • Applications and services using vulnerable pypdf versions for PDF processing
  • Python-based PDF parsing and manipulation tools built on pypdf

Discovery Timeline

  • 2026-02-20 - CVE-2026-27024 published to NVD
  • 2026-02-24 - Last updated in NVD database

Technical Details for CVE-2026-27024

Vulnerability Analysis

This vulnerability (CWE-835: Loop with Unreachable Exit Condition) exists in pypdf's handling of TreeObject structures within PDF documents. When accessing child elements of a TreeObject, such as document outlines or bookmarks, the library iterates through linked nodes without verifying whether a cycle exists in the tree structure. A maliciously crafted PDF can contain circular references in its outline structure, causing the iteration to continue indefinitely without ever reaching an exit condition.

The attack requires local access, as an attacker must convince a user or automated system to process a specially crafted PDF file. Once processed, the vulnerable code path iterates through the tree structure following /First and /Next references without cycle detection, resulting in an infinite loop that consumes CPU resources and blocks application execution.

Root Cause

The root cause is the absence of cycle detection when traversing TreeObject children in pypdf's _data_structures.py module. The original implementation follows object references through the tree structure without maintaining a record of previously visited nodes. When a circular reference exists (e.g., a child node's /Next reference points back to an ancestor), the traversal never terminates because there is no mechanism to detect that a node has already been visited.

Attack Vector

The attack vector requires an attacker to craft a PDF document containing a circular reference in its outline tree structure. When a victim application processes this PDF and accesses outline-related functionality (such as extracting bookmarks or navigating the document structure), the vulnerable code path is triggered. The attack is local in nature, requiring the malicious PDF to be opened or processed by an application using a vulnerable pypdf version.

python
# Security patch from pypdf/generic/_data_structures.py
# Source: https://github.com/py-pdf/pypdf/commit/bd2f6d052fe5941e85e37082c2a43453d48d1295

             return
 
         child_ref = self[NameObject("/First")]
+        last = self[NameObject("/Last")]
         child = child_ref.get_object()
+        visited: set[int] = set()
         while True:
+            child_id = id(child)
+            if child_id in visited:
+                logger_warning(f"Detected cycle in outline structure for {child}", __name__)
+                return
+            visited.add(child_id)
+
             yield child
-            if child == self[NameObject("/Last")]:
+
+            if child == last:
                 return
             child_ref = child.get(NameObject("/Next"))  # type: ignore
             if is_null_or_none(child_ref):

Source: GitHub Commit bd2f6d0

Detection Methods for CVE-2026-27024

Indicators of Compromise

  • Application processes hanging indefinitely when processing specific PDF files
  • Elevated CPU usage sustained at high levels during PDF processing operations
  • Python processes consuming excessive CPU without completing PDF-related tasks
  • Application timeouts or failures when handling user-uploaded PDF documents

Detection Strategies

  • Monitor Python application processes for unusual CPU consumption patterns during PDF processing
  • Implement application-level timeouts for PDF parsing operations to detect potential infinite loop conditions
  • Review application dependency manifests to identify pypdf versions prior to 6.7.1
  • Use software composition analysis (SCA) tools to scan for vulnerable pypdf installations

Monitoring Recommendations

  • Configure process monitoring to alert on sustained high CPU usage by Python applications handling PDFs
  • Implement watchdog timers for PDF processing operations to terminate hung processes
  • Enable application logging to capture PDF processing durations and identify anomalous behavior
  • Monitor for recurring processing failures or timeouts associated with specific PDF files

How to Mitigate CVE-2026-27024

Immediate Actions Required

  • Upgrade pypdf to version 6.7.1 or later immediately
  • Audit all applications and services using pypdf to identify vulnerable deployments
  • Implement input validation to reject PDF files from untrusted sources until patching is complete
  • Configure process resource limits to prevent runaway CPU consumption from affecting system stability

Patch Information

The vulnerability has been fixed in pypdf version 6.7.1. The patch introduces cycle detection by maintaining a set of visited node IDs during TreeObject traversal. When a previously visited node is encountered, the function logs a warning and returns gracefully instead of continuing the infinite loop. The fix is available in the GitHub Release 6.7.1 and can be applied by updating pypdf via pip. Additional details are available in the GitHub Security Advisory GHSA-996q-pr4m-cvgq.

Workarounds

  • Implement application-level timeouts to terminate PDF processing operations that exceed expected duration
  • Isolate PDF processing in separate worker processes with resource limits to contain potential DoS impact
  • Restrict PDF uploads to authenticated users and implement rate limiting
  • Use containerization or sandboxing to limit the blast radius of runaway processes
bash
# Configuration example
# Upgrade pypdf to the patched version
pip install --upgrade pypdf>=6.7.1

# Verify installed version
pip show pypdf | grep Version

# For requirements.txt, specify minimum version
echo "pypdf>=6.7.1" >> requirements.txt

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechPypdf

  • SeverityMEDIUM

  • CVSS Score6.9

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-835
  • Technical References
  • GitHub Release 6.7.1
  • Vendor Resources
  • GitHub Commit Update

  • GitHub Pull Request

  • GitHub Security Advisory GHSA-996q-pr4m-cvgq
  • Related CVEs
  • CVE-2026-41314: pypdf Library DoS Vulnerability

  • CVE-2026-41313: pypdf Library DoS Vulnerability

  • CVE-2026-41312: pypdf Library DoS Vulnerability

  • CVE-2026-41168: pypdf Library DOS Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English