The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
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-27888

CVE-2026-27888: pypdf Library DoS Vulnerability

CVE-2026-27888 is a denial of service vulnerability in the pypdf library that allows attackers to exhaust RAM through crafted PDFs. This article covers the technical details, affected versions, impact, and mitigation.

Published: February 27, 2026

CVE-2026-27888 Overview

CVE-2026-27888 is a Resource Exhaustion vulnerability affecting pypdf, a free and open-source pure-python PDF library. Prior to version 6.7.3, an attacker can craft a malicious PDF document that leads to complete RAM exhaustion when the xfa property of a reader or writer is accessed and the corresponding stream is compressed using /FlateDecode.

Critical Impact

Successful exploitation of this vulnerability can cause complete denial of service through memory exhaustion, potentially crashing applications or systems that process untrusted PDF files using the pypdf library.

Affected Products

  • pypdf versions prior to 6.7.3
  • Applications and services using pypdf to parse PDF documents with XFA forms
  • Python-based PDF processing pipelines handling untrusted input

Discovery Timeline

  • 2026-02-26 - CVE CVE-2026-27888 published to NVD
  • 2026-02-26 - Last updated in NVD database

Technical Details for CVE-2026-27888

Vulnerability Analysis

This vulnerability is classified as CWE-400 (Uncontrolled Resource Consumption). The flaw exists in how pypdf handles XFA (XML Forms Architecture) data within PDF documents. When a PDF contains XFA data compressed using the /FlateDecode filter, accessing the xfa property triggers decompression without proper limits. An attacker can craft a PDF with a specially designed compressed stream that, when decompressed, expands to an extremely large size, consuming all available system memory.

The attack is network-accessible and requires no authentication or user interaction beyond processing the malicious PDF file. This makes it particularly dangerous in automated document processing workflows or web applications that accept PDF uploads.

Root Cause

The root cause lies in the use of zlib decompression without applying appropriate limits when retrieving XFA data from PDF documents. The library would decompress /FlateDecode streams without checking the expansion ratio or setting maximum decompression bounds, allowing a small compressed payload to expand into gigabytes of data in memory.

Attack Vector

The attack vector is network-based, requiring an attacker to deliver a malicious PDF to a target system. Exploitation occurs when:

  1. A malicious PDF containing crafted XFA data with /FlateDecode compression is uploaded or received by the target
  2. The application uses pypdf to process the PDF and accesses the xfa property
  3. The decompression operation executes without limits, exhausting system RAM
  4. The target system or application becomes unresponsive or crashes
python
# POSSIBILITY OF SUCH DAMAGE.
 
import struct
-import zlib
from abc import abstractmethod
from collections.abc import Generator, Iterable, Iterator, Mapping
from datetime import datetime

Source: GitHub Commit Update

The patch shows the removal of direct zlib import in favor of using a decompression method with built-in limits when handling XFA data, preventing unbounded memory allocation during decompression.

Detection Methods for CVE-2026-27888

Indicators of Compromise

  • Sudden memory spikes or exhaustion on systems processing PDF files
  • Application crashes or out-of-memory errors when handling specific PDF documents
  • Unusual PDF files with disproportionately small file sizes compared to claimed content
  • System log entries indicating memory allocation failures in Python processes

Detection Strategies

  • Monitor memory usage patterns of applications using pypdf for anomalous consumption
  • Implement file size vs. decompressed content ratio checks before processing PDFs
  • Deploy application-level logging to track XFA property access in PDF processing workflows
  • Use dependency scanning tools to identify vulnerable pypdf versions in your environment

Monitoring Recommendations

  • Set up memory usage alerts for PDF processing services to detect resource exhaustion attempts
  • Implement process-level memory limits (ulimits) for PDF processing applications
  • Monitor for repeated PDF processing failures that could indicate exploitation attempts
  • Review application logs for patterns of XFA-related operations on external documents

How to Mitigate CVE-2026-27888

Immediate Actions Required

  • Upgrade pypdf to version 6.7.3 or later immediately using pip install pypdf>=6.7.3
  • Audit all applications and dependencies for vulnerable pypdf versions
  • Implement input validation and file size limits for PDF uploads pending patching
  • Consider temporarily disabling XFA form processing if not required

Patch Information

The vulnerability has been fixed in pypdf version 6.7.3. The security patch implements zlib decompression limits when retrieving XFA data, preventing unbounded memory allocation. Details are available in the GitHub Security Advisory GHSA-x7hp-r3qg-r3cj and GitHub Pull Request #3658. The patched release is available at the GitHub Release v6.7.3.

Workarounds

  • Apply the patch manually from GitHub Commit 7a4c824 if immediate upgrade is not possible
  • Implement process-level memory limits using cgroups or container resource constraints
  • Add pre-processing validation to reject PDFs with suspicious XFA stream characteristics
  • Isolate PDF processing in sandboxed environments to limit impact of resource exhaustion
bash
# Configuration example: Upgrade pypdf to patched version
pip install --upgrade "pypdf>=6.7.3"

# Verify installed version
pip show pypdf | grep Version

# Alternative: Set process memory limits when running PDF processing
# Using ulimit to restrict memory for the process
ulimit -v 2097152  # Limit virtual memory to 2GB
python your_pdf_processor.py

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.6

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:U/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-400
  • Technical References
  • GitHub Commit Update

  • GitHub Pull Request #3658

  • GitHub Release v6.7.3

  • GitHub Security Advisory GHSA-x7hp-r3qg-r3cj
  • Related CVEs
  • CVE-2026-33699: Pypdf_project Pypdf DOS Vulnerability

  • CVE-2026-33123: Pypdf_project Pypdf DOS Vulnerability

  • CVE-2026-31826: pypdf Library DoS Vulnerability

  • CVE-2026-28804: Pypdf_project Pypdf 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