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

CVE-2023-52425: Libexpat DOS Vulnerability

CVE-2023-52425 is a denial of service vulnerability in Libexpat that causes resource consumption through excessive reparsing of large tokens. This article covers the technical details, affected versions, and mitigation.

Updated: May 14, 2026

CVE-2023-52425 Overview

CVE-2023-52425 affects libexpat through version 2.5.0, a widely deployed C library for parsing XML. The vulnerability allows a remote attacker to trigger a denial of service through resource consumption. When libexpat processes a large XML token that requires multiple buffer fills, the parser performs many full reparsings of the accumulated buffer. This algorithmic inefficiency causes excessive CPU consumption and parsing latency. The flaw is tracked under CWE-400: Uncontrolled Resource Consumption. Because libexpat is embedded in operating systems, language runtimes, browsers, and network appliances, the vulnerability has broad downstream impact across Debian, Fedora, NetApp, and many other ecosystems.

Critical Impact

A remote, unauthenticated attacker can send a crafted XML document containing oversized tokens to exhaust CPU resources and cause denial of service in any application that parses untrusted XML with vulnerable libexpat builds.

Affected Products

  • libexpat through version 2.5.0
  • Debian LTS distributions shipping vulnerable libexpat packages
  • Fedora distributions shipping vulnerable libexpat packages
  • NetApp products bundling libexpat (per vendor advisory)

Discovery Timeline

  • 2024-02-04 - CVE-2023-52425 published to NVD
  • 2024-03-20 - Openwall OSS-Security disclosure published
  • 2024-04 - Debian LTS security announcement released
  • 2024-06-14 - NetApp security advisory published
  • 2025-11-04 - Last updated in NVD database

Technical Details for CVE-2023-52425

Vulnerability Analysis

The vulnerability is a Denial of Service caused by an algorithmic complexity flaw in the libexpat XML parser. libexpat processes XML input incrementally and stores partially parsed content in an internal buffer. When a single token, such as an attribute value, element name, or character data run, is larger than the buffer size, the parser must refill the buffer multiple times to consume the full token. In the vulnerable code path, each buffer refill triggers a full reparse of the accumulated content rather than resuming from the previous position. The work grows quadratically with the token size, allowing a small malicious payload to consume disproportionate CPU time on the parsing host.

Root Cause

The root cause is the lack of incremental progress tracking when a token spans multiple buffer fills. The parser repeatedly restarts tokenization from the beginning of the accumulated data, weighted under [CWE-400]. This design assumption that tokens fit within a single buffer breaks when attacker-controlled XML supplies tokens of arbitrary length. The patch in libexpatpull request 789 reworks the parser to avoid repeated full reparsings.

Attack Vector

The attack vector is network-based and requires no authentication or user interaction. An attacker submits an XML document containing a token, such as an extremely long attribute value or element content, that exceeds the parser's buffer size and forces multiple refills. Any service that accepts and parses untrusted XML with vulnerable libexpat is exposed. This includes SOAP endpoints, RSS readers, configuration loaders, document processors, and language bindings such as Python's pyexpat. See the Openwall OSS-Security disclosure for technical discussion.

No verified proof-of-concept code is published in the referenced advisories. The vulnerability mechanism is described in the upstream patch notes rather than as runnable exploit code.

Detection Methods for CVE-2023-52425

Indicators of Compromise

  • Sustained high CPU utilization in processes linked against libexpat (for example python, php, httpd, application servers) while parsing inbound XML.
  • HTTP or messaging requests containing XML payloads with abnormally large single tokens, attribute values, or text nodes (often hundreds of kilobytes or more).
  • Increased XML parsing latency or request timeouts coinciding with traffic from a small set of source addresses.

Detection Strategies

  • Inventory installed libexpat versions across endpoints, containers, and appliances and flag any version at or below 2.5.0.
  • Inspect application logs for repeated XML parsing timeouts or worker process restarts triggered by inbound requests.
  • Add WAF or API gateway rules that reject XML payloads exceeding reasonable size thresholds before they reach application parsers.

Monitoring Recommendations

  • Monitor per-process CPU time for XML-parsing workers and alert on sustained saturation by a single request.
  • Track software bill of materials (SBOM) data to identify transitive dependencies on expat across applications.
  • Correlate network telemetry showing oversized XML POST bodies with backend latency spikes to detect exploitation attempts.

How to Mitigate CVE-2023-52425

Immediate Actions Required

  • Upgrade libexpat to version 2.6.0 or later, which contains the fix from upstream pull request 789.
  • Apply distribution updates: Debian LTS (April 2024, September 2024) and Fedora (package announcement).
  • Review the NetApp security advisory for product-specific guidance on bundled libexpat.
  • Rebuild and redeploy applications that statically link libexpat after updating the library.

Patch Information

The fix is delivered upstream in libexpat 2.6.0 via GitHub pull request 789. Linux distributions have backported the patch into supported libexpat and expat package streams. Verify the installed version with rpm -q expat, dpkg -l libexpat1, or the equivalent package query for the platform.

Workarounds

  • Enforce strict request size limits on XML inputs at the reverse proxy, WAF, or API gateway to block payloads with oversized tokens.
  • Where feasible, switch services to a non-vulnerable parser or disable XML endpoints that accept untrusted input.
  • Apply rate limiting and per-client CPU quotas on XML-parsing workers to contain the impact of resource exhaustion attempts.
bash
# Verify installed libexpat version and update on Debian/Ubuntu
dpkg -l | grep -E 'libexpat|expat'
sudo apt-get update && sudo apt-get install --only-upgrade libexpat1

# Verify and update on Fedora/RHEL
rpm -q expat
sudo dnf upgrade 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

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability1.55%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-400
  • Technical References
  • Openwall OSS Security Update

  • Debian LTS Security Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • NetApp Security Advisory

  • Debian LTS Security Announcement

  • Fedora Package Announcement
  • Vendor Resources
  • GitHub Pull Request for libexpat
  • Related CVEs
  • CVE-2026-45186: Libexpat DOS Vulnerability

  • CVE-2026-32777: Libexpat DOS Vulnerability

  • CVE-2025-59375: Libexpat DOS Vulnerability

  • CVE-2022-25313: Libexpat DOS Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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