A Leader in the 2025 Gartner® Magic Quadrant™ for Endpoint Protection Platforms. Five years running.A Leader in the Gartner® Magic Quadrant™Read the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI Security Portfolio
      Leading the Way in AI-Powered Security Solutions
    • 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
    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
    Identity Security
    • Singularity Identity
      Identity Threat Detection and Response
  • 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
      Digital Forensics, IRR & Breach Readiness
    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
    • 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-52426

CVE-2023-52426: Libexpat XXE Vulnerability

CVE-2023-52426 is an XXE vulnerability in Libexpat that allows recursive XML entity expansion when XML_DTD is undefined. This post covers the technical details, affected versions, impact, and mitigation.

Published: February 4, 2026

CVE-2023-52426 Overview

CVE-2023-52426 is a recursive XML Entity Expansion vulnerability in libexpat, a widely-used XML parsing library. When XML_DTD is undefined at compile time, the library fails to properly protect against exponential entity expansion attacks, commonly known as "Billion Laughs" attacks. This allows attackers to craft malicious XML documents that can cause denial of service through resource exhaustion.

Critical Impact

Systems running libexpat versions through 2.5.0 compiled without XML_DTD are vulnerable to denial of service attacks through specially crafted XML documents that trigger recursive entity expansion, potentially exhausting system memory and CPU resources.

Affected Products

  • libexpat versions through 2.5.0
  • Applications using libexpat compiled without XML_DTD defined
  • Systems where XML_GE is not enabled for general entity expansion protection

Discovery Timeline

  • 2024-02-04 - CVE-2023-52426 published to NVD
  • 2025-11-04 - Last updated in NVD database

Technical Details for CVE-2023-52426

Vulnerability Analysis

The vulnerability exists in libexpat's handling of XML entity expansion when the library is compiled without the XML_DTD preprocessor definition. Under these specific compile-time conditions, the Billion Laughs attack protection mechanisms (introduced in Expat 2.4.0) are not activated, leaving the parser vulnerable to exponential entity expansion attacks.

The Billion Laughs attack works by defining nested XML entities that recursively reference each other, causing exponential growth in memory consumption when the XML document is parsed. Without proper protection, a small XML document (only a few kilobytes) can expand to consume gigabytes of memory, leading to denial of service.

The core issue is that the protection functions XML_SetBillionLaughsAttackProtectionMaximumAmplification() and XML_SetBillionLaughsAttackProtectionActivationThreshold() were only conditionally compiled when XML_DTD was defined, leaving a gap in protection for builds without DTD support.

Root Cause

The root cause is incomplete conditional compilation logic in libexpat's security mechanisms. The Billion Laughs attack protection was tied exclusively to the XML_DTD compile flag, but entity expansion can also occur through general entities (XML_GE) when DTD processing is disabled. This oversight meant that builds configured without DTD support lacked the exponential entity expansion protections, despite still being capable of processing entities that could trigger the attack.

Attack Vector

The attack vector requires local access where an attacker can supply a malicious XML document to an application using the vulnerable libexpat library. The attacker crafts an XML file containing deeply nested entity definitions that expand exponentially when parsed. Since this is a local attack vector requiring the attacker to provide input to the XML parser, exploitation typically occurs through:

  • Uploading malicious XML files to applications that parse user-supplied XML
  • Providing crafted XML through API endpoints that process XML input
  • Including malicious XML in configuration files or data imports

The following patch extends the scope of Billion Laughs attack protection to cover builds where XML_GE is enabled:

c
 XMLPARSEAPI(const XML_Feature *)
 XML_GetFeatureList(void);
 
-#ifdef XML_DTD
-/* Added in Expat 2.4.0. */
+#if defined(XML_DTD) || XML_GE == 1
+/* Added in Expat 2.4.0 for XML_DTD defined and
+ * added in Expat 2.6.0 for XML_GE == 1. */
 XMLPARSEAPI(XML_Bool)
 XML_SetBillionLaughsAttackProtectionMaximumAmplification(
     XML_Parser parser, float maximumAmplificationFactor);
 
-/* Added in Expat 2.4.0. */
+/* Added in Expat 2.4.0 for XML_DTD defined and
+ * added in Expat 2.6.0 for XML_GE == 1. */
 XMLPARSEAPI(XML_Bool)
 XML_SetBillionLaughsAttackProtectionActivationThreshold(
     XML_Parser parser, unsigned long long activationThresholdBytes);

Source: GitHub Commit Reference

Detection Methods for CVE-2023-52426

Indicators of Compromise

  • Abnormal memory consumption spikes in applications performing XML parsing operations
  • Processes consuming excessive CPU time during XML document processing
  • Application crashes or out-of-memory errors when handling XML input
  • XML documents with deeply nested entity definitions in logs or incoming data

Detection Strategies

  • Monitor system resource utilization for processes that handle XML parsing, looking for sudden memory or CPU spikes
  • Implement XML input validation to detect and reject documents with excessive entity definitions before parsing
  • Use application-level logging to track XML parsing duration and flag unusually long parse times
  • Deploy file integrity monitoring on systems using libexpat to detect unauthorized library modifications

Monitoring Recommendations

  • Set up alerts for memory consumption thresholds on services that process XML data
  • Log and analyze incoming XML payloads for suspicious entity definition patterns
  • Monitor libexpat version across your infrastructure to identify vulnerable installations
  • Track parsing failures and timeouts as potential indicators of exploitation attempts

How to Mitigate CVE-2023-52426

Immediate Actions Required

  • Upgrade libexpat to version 2.6.0 or later, which extends Billion Laughs protection to XML_GE builds
  • Audit compile-time flags used when building libexpat to ensure XML_DTD or XML_GE protections are enabled
  • Implement input size limits on XML documents accepted by your applications
  • Review and restrict which services and applications accept XML input from untrusted sources

Patch Information

The vulnerability has been addressed in the libexpat project through commit 0f075ec8ecb5e43f8fdca5182f8cca4703da0404. The fix extends the conditional compilation of Billion Laughs attack protection to include builds where XML_GE == 1, ensuring protection is available regardless of whether XML_DTD is defined.

The patch modifies the CMake build configuration and header files to use the combined condition defined(XML_DTD) || XML_GE == 1 for enabling the protection APIs. This change is included in libexpat 2.6.0 and later versions. For detailed patch information, see the GitHub Pull Request and GitHub Commit Reference.

Additional security advisories have been published by NetApp and Fedora.

Workarounds

  • Recompile libexpat with XML_DTD defined to enable existing Billion Laughs protection mechanisms
  • Implement application-level XML parsing limits to cap entity expansion depth and total expansion size
  • Use XML validation or pre-processing to strip or reject documents containing DTD declarations and entity definitions
  • Deploy resource limits (cgroups, ulimits) on processes that handle XML parsing to contain potential DoS impact
bash
# Configuration example
# Rebuild libexpat with DTD support to enable Billion Laughs protection
cmake -DEXPAT_DTD=ON -DEXPAT_GE=ON ..
make
make install

# Or set resource limits for XML processing services
# /etc/security/limits.conf
# xmlservice    soft    as    2097152    # 2GB memory limit
# xmlservice    hard    as    4194304    # 4GB hard limit

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

  • Vulnerability Details
  • TypeXXE

  • Vendor/TechLibexpat

  • SeverityMEDIUM

  • CVSS Score5.5

  • EPSS Probability0.02%

  • 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-776
  • Technical References
  • MITRE CWE Definition

  • Fedora Package Announcement

  • Fedora Package Announcement

  • NetApp Security Advisory

  • Fedora Package Announcement
  • Vendor Resources
  • GitHub Commit Reference

  • GitHub Pull Request
  • Related CVEs
  • CVE-2026-24515

  • CVE-2024-50602

  • CVE-2024-45492

  • CVE-2024-45491

  • CVE-2024-45490

  • CVE-2024-28757

  • CVE-2023-52425
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
  • English
  • 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