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-2023-36464

CVE-2023-36464: Pypdf_project Pypdf DOS Vulnerability

CVE-2023-36464 is a denial of service flaw in Pypdf_project Pypdf that triggers an infinite loop during content stream parsing. This article covers technical details, affected versions, impact, and mitigation steps.

Published: February 11, 2026

CVE-2023-36464 Overview

CVE-2023-36464 is an Infinite Loop vulnerability affecting pypdf, an open source, pure-python PDF library. In affected versions, an attacker may craft a malicious PDF that triggers an infinite loop when the __parse_content_stream function is executed. This occurs, for example, when a user attempts to extract text from such a crafted PDF file. The vulnerability can lead to denial of service conditions by consuming system resources indefinitely.

Critical Impact

An attacker can craft a malicious PDF file that causes applications using pypdf to hang indefinitely when processing text extraction, resulting in denial of service conditions.

Affected Products

  • pypdf_project pypdf
  • pypdf2_project pypdf2

Discovery Timeline

  • 2023-06-27 - CVE CVE-2023-36464 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2023-36464

Vulnerability Analysis

This vulnerability is classified under CWE-835 (Loop with Unreachable Exit Condition), commonly referred to as an infinite loop. The flaw exists in the PDF content stream parsing functionality within pypdf. When parsing content streams, the library reads bytes looking for carriage return (\r) or newline (\n) characters. However, the parsing logic fails to properly handle the case where the stream reaches end-of-file (EOF) before encountering these expected characters.

The attack requires local access with user interaction—a victim must open or process a maliciously crafted PDF file. While the vulnerability does not compromise confidentiality or integrity, it can completely halt application availability, causing the affected process to consume CPU resources indefinitely until manually terminated.

Root Cause

The root cause lies in the parsing loop within pypdf/generic/_data_structures.py. The problematic code iterates with the condition while peek not in (b"\r", b"\n"), which continues reading until a newline or carriage return is found. The issue is that this condition never accounts for an empty byte string (b""), which is returned when the end of the file is reached. Without proper EOF handling, a malformed PDF that lacks the expected line terminators causes the parser to loop indefinitely.

Attack Vector

The attack vector is local and requires user interaction. An attacker must distribute a specially crafted PDF file and convince a user to process it with an application that uses the vulnerable pypdf library. Common scenarios include:

  • Email attachments containing malicious PDFs
  • PDF files uploaded to web applications that perform server-side text extraction
  • Document processing pipelines that automatically parse PDF content
  • Any application using pypdf's text extraction functionality on untrusted PDF files

The vulnerability is triggered when the __parse_content_stream function processes the malicious content, such as during text extraction operations.

Detection Methods for CVE-2023-36464

Indicators of Compromise

  • Processes using pypdf or pypdf2 libraries consuming excessive CPU resources for extended periods
  • Application hangs or freezes when opening or processing specific PDF files
  • Abnormally long processing times for PDF text extraction operations
  • System resource exhaustion symptoms coinciding with PDF processing activities

Detection Strategies

  • Monitor application processes for unusually long-running PDF parsing operations
  • Implement timeouts for PDF processing operations to detect potential infinite loop conditions
  • Audit Python dependencies to identify vulnerable pypdf versions in your environment
  • Use software composition analysis (SCA) tools to scan for affected library versions

Monitoring Recommendations

  • Configure application-level timeouts for all PDF processing operations
  • Monitor CPU utilization patterns for processes that handle PDF files
  • Set up alerts for processes that exceed expected execution times during document processing
  • Implement health checks for services that depend on pypdf for PDF parsing

How to Mitigate CVE-2023-36464

Immediate Actions Required

  • Upgrade pypdf to a patched version that includes the fix from pull request #1828
  • Audit all applications and services using pypdf or pypdf2 libraries
  • Implement input validation and processing timeouts for PDF file handling
  • Restrict PDF processing to trusted sources where possible

Patch Information

The vulnerability was introduced in pull request #969 and has been resolved in pull request #1828. Users should upgrade to the latest version of pypdf that includes this fix. The GitHub Security Advisory GHSA-4vvm-4w3v-6mr8 provides additional details about the affected versions and remediation.

Workarounds

  • For users unable to immediately upgrade, apply a manual patch by modifying the line while peek not in (b"\r", b"\n") in pypdf/generic/_data_structures.py to while peek not in (b"\r", b"\n", b"")
  • Implement processing timeouts around pypdf text extraction calls to prevent indefinite hangs
  • Validate PDF files using alternative tools before processing with vulnerable pypdf versions
  • Consider using sandboxed environments for processing untrusted PDF files
python
# Manual workaround: Modify pypdf/generic/_data_structures.py
# Change the line:
# while peek not in (b"\r", b"\n")
# To include EOF handling:
# while peek not in (b"\r", b"\n", b"")

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 Score5.5

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-835
  • Vendor Resources
  • GitHub Pull Request #1828

  • GitHub Pull Request #969

  • GitHub Security Advisory GHSA-4vvm-4w3v-6mr8
  • 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