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
    • 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-32777

CVE-2026-32777: Libexpat DOS Vulnerability

CVE-2026-32777 is a denial of service vulnerability in Libexpat that triggers an infinite loop during DTD parsing. This article covers the technical details, affected versions, impact, and mitigation strategies.

Published: March 20, 2026

CVE-2026-32777 Overview

CVE-2026-32777 is an Infinite Loop vulnerability in libexpat, a widely-used XML parsing library. The vulnerability exists in versions prior to 2.7.5 and can be triggered during the parsing of Document Type Definition (DTD) content. When a specially crafted XML document with malicious DTD content is processed, the parser enters an infinite loop, causing the application to hang indefinitely and resulting in a Denial of Service condition.

Critical Impact

Applications using libexpat for XML parsing are vulnerable to Denial of Service attacks through malicious DTD content, potentially causing system resource exhaustion and service unavailability.

Affected Products

  • libexpat versions prior to 2.7.5
  • Applications and libraries that depend on libexpat for XML parsing
  • Systems running vulnerable libexpat installations across Linux, macOS, and Windows platforms

Discovery Timeline

  • 2026-03-16 - CVE-2026-32777 published to NVD
  • 2026-03-17 - Last updated in NVD database

Technical Details for CVE-2026-32777

Vulnerability Analysis

This vulnerability is classified as CWE-835 (Loop with Unreachable Exit Condition), commonly known as an Infinite Loop vulnerability. The flaw resides in libexpat's DTD parsing functionality, where certain malformed or malicious DTD content can cause the parser to enter a loop that never terminates.

The vulnerability requires local access to exploit, as an attacker must be able to provide a malicious XML file to an application using the vulnerable libexpat library. Once triggered, the infinite loop consumes CPU resources indefinitely, preventing the affected application from processing any further requests and potentially impacting system-wide performance.

The issue was identified through OSS-Fuzz automated testing, which detected the hang condition during fuzzing of DTD parsing routines. The libexpat project has addressed this vulnerability through pull request #1159 and pull request #1162.

Root Cause

The root cause of this vulnerability lies in improper loop termination conditions within the DTD content parsing logic. When processing certain edge cases in DTD structures, the parser fails to properly detect completion conditions, resulting in an endless iteration through the parsing routine. This is a classic example of an algorithmic complexity vulnerability where malicious input can trigger worst-case behavior.

Attack Vector

The attack vector requires local access to provide a malicious XML document to an application using libexpat. An attacker could:

  1. Submit a crafted XML file with malicious DTD content to a vulnerable application
  2. Upload a weaponized XML document to a service that processes XML using libexpat
  3. Embed malicious DTD content in XML data streams processed by vulnerable systems

The vulnerability manifests when libexpat attempts to parse DTD content within XML documents. Detailed technical information about the infinite loop condition can be found in the OSS-Fuzz issue report and the GitHub issue #1161.

Detection Methods for CVE-2026-32777

Indicators of Compromise

  • Unusually high CPU utilization by processes using libexpat for XML parsing
  • Application hangs or timeouts when processing XML documents
  • Service unavailability for XML-processing applications
  • Process threads stuck in parsing operations with no progress

Detection Strategies

  • Monitor process CPU usage for applications that handle XML parsing with libexpat
  • Implement timeout mechanisms for XML parsing operations to detect infinite loop conditions
  • Deploy application performance monitoring to identify parsing delays or hangs
  • Use SentinelOne's behavioral analysis to detect abnormal resource consumption patterns

Monitoring Recommendations

  • Configure alerts for sustained high CPU usage by XML-processing services
  • Implement logging around XML parsing operations to track parsing duration
  • Monitor application health endpoints for services that process external XML data
  • Review system logs for process timeout or kill events related to XML parsing

How to Mitigate CVE-2026-32777

Immediate Actions Required

  • Upgrade libexpat to version 2.7.5 or later immediately
  • Audit systems and applications to identify all instances of libexpat usage
  • Apply vendor patches for dependent applications and operating system packages
  • Implement input validation to limit DTD complexity in XML documents

Patch Information

The libexpat project has released version 2.7.5 which addresses this vulnerability. The fix ensures proper loop termination conditions during DTD parsing. Patches are available through:

  • GitHub Pull Request #1159
  • GitHub Pull Request #1162

Organizations should update their libexpat installations and rebuild any statically linked applications. System administrators should also check for updated packages from their Linux distribution repositories.

Workarounds

  • Disable DTD processing in libexpat where not required using XML_SetParamEntityParsing(parser, XML_PARAM_ENTITY_PARSING_NEVER)
  • Implement parsing timeouts at the application level to kill hung parsing operations
  • Use application-level sandboxing to limit resource consumption by XML parsing processes
  • Validate and sanitize XML input before processing to reject overly complex DTD structures
bash
# Check installed libexpat version
dpkg -l libexpat1 2>/dev/null || rpm -qa | grep expat

# Update libexpat on Debian/Ubuntu systems
sudo apt update && sudo apt upgrade libexpat1

# Update libexpat on RHEL/CentOS systems
sudo yum update expat

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechLibexpat

  • SeverityMEDIUM

  • CVSS Score5.5

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-835
  • Technical References
  • OSS-Fuzz Issue Report
  • Vendor Resources
  • GitHub Issue Report

  • GitHub Pull Request

  • GitHub Pull Request
  • Related CVEs
  • CVE-2025-59375: Libexpat DOS Vulnerability

  • CVE-2023-52425: Libexpat DoS Vulnerability Explained

  • CVE-2022-25313: Libexpat DOS Vulnerability

  • CVE-2026-32778: Libexpat NULL Pointer Dereference Flaw
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