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-2024-23807

CVE-2024-23807: Apache Xerces-C++ Use-After-Free Bug

CVE-2024-23807 is a use-after-free vulnerability in Apache Xerces-C++ XML parser triggered during external DTD scanning. This article covers the technical details, affected versions, impact, and mitigation strategies.

Updated: January 22, 2026

CVE-2024-23807 Overview

A critical use-after-free vulnerability exists in the Apache Xerces C++ XML parser affecting versions 3.0.0 through 3.2.4. The vulnerability is triggered during the scanning of external Document Type Definitions (DTDs), allowing remote attackers to potentially achieve arbitrary code execution or cause denial of service conditions.

This issue was previously disclosed as CVE-2018-1311, but that advisory incorrectly stated the fix would be available in versions 3.2.3 or 3.2.4. Users are strongly recommended to upgrade to version 3.2.5 which properly addresses this vulnerability.

Critical Impact

Remote attackers can exploit this use-after-free condition during DTD processing to execute arbitrary code, compromise system integrity, or cause application crashes, potentially affecting any system using the vulnerable XML parser.

Affected Products

  • Apache Xerces-C++ versions 3.0.0 to 3.2.4

Discovery Timeline

  • 2024-02-29 - CVE-2024-23807 published to NVD
  • 2025-01-16 - Last updated in NVD database

Technical Details for CVE-2024-23807

Vulnerability Analysis

This vulnerability is classified as CWE-416 (Use After Free), a memory corruption flaw that occurs when a program continues to use a pointer after the memory it references has been freed. In the context of Apache Xerces C++, this condition is triggered specifically during the parsing of external DTDs.

When the XML parser processes documents containing external DTD references, the parser's scanning mechanism can access memory that has already been deallocated. This creates a dangerous condition where the freed memory may have been reallocated for other purposes, leading to unpredictable behavior including potential code execution.

The vulnerability can be exploited remotely over a network connection without requiring any authentication or user interaction, making it particularly dangerous for applications that process XML content from untrusted sources.

Root Cause

The root cause stems from improper memory management within the DTD scanning functionality of the Xerces C++ parser. During the parsing of external DTD references, the parser fails to properly track the lifecycle of certain memory allocations, resulting in dangling pointer references. When these freed memory regions are subsequently accessed, the use-after-free condition occurs.

Attack Vector

The attack vector is network-based, requiring an attacker to supply a maliciously crafted XML document containing external DTD references to an application using a vulnerable version of Apache Xerces C++. The exploitation does not require authentication or any specific privileges, and can be triggered without user interaction.

An attacker would craft an XML document with a specially constructed DTD reference designed to trigger the memory deallocation and subsequent access pattern that causes the use-after-free condition. When the vulnerable parser processes this document, the memory corruption occurs, potentially allowing the attacker to control program execution or crash the application.

Detection Methods for CVE-2024-23807

Indicators of Compromise

  • Unexpected crashes or segmentation faults in applications using Apache Xerces C++ during XML processing
  • Anomalous memory access patterns in applications parsing XML content with external DTD references
  • Suspicious XML documents containing external DTD references from untrusted or unusual sources
  • Evidence of DTD fetching attempts to attacker-controlled servers

Detection Strategies

  • Monitor for crashes in Xerces C++ based applications, particularly those processing external XML content
  • Implement static code analysis to identify applications using vulnerable Xerces C++ versions (3.0.0 through 3.2.4)
  • Deploy network monitoring to detect XML payloads containing external DTD references from untrusted sources
  • Use memory debugging tools (such as AddressSanitizer or Valgrind) during testing to detect use-after-free conditions

Monitoring Recommendations

  • Enable detailed logging for all XML parsing operations in affected applications
  • Monitor system logs for memory-related errors or crashes in processes utilizing Xerces C++
  • Implement network-level inspection for XML traffic containing DOCTYPE declarations with external entities
  • Track software inventory to identify all instances of Apache Xerces C++ deployments

How to Mitigate CVE-2024-23807

Immediate Actions Required

  • Upgrade Apache Xerces C++ to version 3.2.5 or later immediately
  • Disable DTD processing in all applications using vulnerable versions as a temporary mitigation
  • Audit all applications and systems that utilize Apache Xerces C++ for XML parsing
  • Apply network-level controls to filter or inspect XML content from untrusted sources

Patch Information

Apache has released version 3.2.5 of Xerces C++ which properly fixes this use-after-free vulnerability. The fix is available through the official Apache Xerces project. Users can review the patch details in the GitHub Pull Request #54 and the Apache Mailing List announcement.

Workarounds

  • Disable DTD processing via the DOM using standard parser features until patching is possible
  • Set the XERCES_DISABLE_DTD environment variable when using SAX parsing
  • Implement input validation to reject XML documents containing external DTD references
  • Deploy applications in sandboxed environments to limit the impact of potential exploitation
bash
# Disable DTD processing via environment variable for SAX parser
export XERCES_DISABLE_DTD=1

# For DOM parser, use the following feature settings in your application code:
# parser->setFeature(XMLUni::fgXercesLoadExternalDTD, false);
# parser->setFeature(XMLUni::fgXercesDisableDTD, true);

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

  • Vulnerability Details
  • TypeUse After Free

  • Vendor/TechApache Xerces

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability0.40%

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

  • Apache Mailing List Thread
  • Latest CVEs
  • CVE-2025-52793: Esselink.nu Settings CSRF Vulnerability

  • CVE-2025-52772: Virtual Moderator CSRF Vulnerability

  • CVE-2025-48279: WC MyParcel Belgium XSS Vulnerability

  • CVE-2025-39381: KiotViet Sync CSRF 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