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

CVE-2024-45491: Libexpat Buffer Overflow Vulnerability

CVE-2024-45491 is a buffer overflow vulnerability in Libexpat affecting versions before 2.6.3, caused by an integer overflow in dtdCopy on 32-bit platforms. This article covers technical details, affected versions, and mitigation.

Published: January 28, 2026

CVE-2024-45491 Overview

CVE-2024-45491 is an integer overflow vulnerability discovered in libexpat, a widely-used XML parsing library. The vulnerability exists in the dtdCopy function within xmlparse.c, where an integer overflow can occur for the nDefaultAtts variable on 32-bit platforms where UINT_MAX equals SIZE_MAX. This flaw could allow attackers to trigger memory corruption through specially crafted XML input, potentially leading to remote code execution or denial of service conditions.

Critical Impact

This integer overflow vulnerability affects 32-bit systems running libexpat versions prior to 2.6.3, potentially allowing attackers to corrupt memory through malicious XML documents and achieve arbitrary code execution.

Affected Products

  • libexpat versions prior to 2.6.3
  • 32-bit platforms running vulnerable libexpat versions
  • Applications and services that depend on libexpat for XML parsing

Discovery Timeline

  • 2024-08-30 - CVE-2024-45491 published to NVD
  • 2025-11-04 - Last updated in NVD database

Technical Details for CVE-2024-45491

Vulnerability Analysis

This vulnerability is classified as CWE-190 (Integer Overflow or Wraparound). The flaw resides in the dtdCopy function within xmlparse.c, which handles the copying of Document Type Definition (DTD) data during XML parsing operations.

On 32-bit platforms, the nDefaultAtts counter can overflow due to the platform-specific condition where UINT_MAX equals SIZE_MAX. When processing XML documents with a large number of default attributes, the integer overflow can cause the allocated buffer size to be smaller than expected, leading to subsequent heap-based buffer overflows when data is written beyond the allocated bounds.

The network-accessible attack vector means that any application accepting XML input from untrusted sources could be vulnerable. Since no user interaction or special privileges are required, this vulnerability presents a significant risk to systems processing untrusted XML content.

Root Cause

The root cause is insufficient validation of the nDefaultAtts counter in the dtdCopy function before memory allocation operations. On 32-bit platforms, the multiplication used to calculate buffer sizes can wrap around, resulting in a smaller allocation than required. This creates a classic integer overflow leading to heap corruption scenario.

The vulnerability specifically manifests when:

  1. An XML document contains a DTD with numerous default attributes
  2. The parser copies the DTD structure via dtdCopy
  3. The nDefaultAtts value exceeds bounds that cause integer wraparound on 32-bit systems
  4. Subsequent memory operations write beyond allocated buffer boundaries

Attack Vector

The attack vector is network-based, requiring an attacker to deliver a specially crafted XML document to a vulnerable application. The malicious XML would contain a DTD structure designed to trigger the integer overflow condition during parsing.

Exploitation requires no authentication or user interaction, making this vulnerability particularly dangerous for XML-processing services exposed to the network. The attacker would craft an XML document with an excessive number of default attributes in the DTD, causing the integer overflow when the parser attempts to copy the DTD structure.

The vulnerability mechanism centers on the dtdCopy function where the nDefaultAtts counter is used in memory allocation calculations. On 32-bit systems, when this value becomes sufficiently large, the multiplication wraps around to a small value, resulting in insufficient memory allocation. For detailed technical analysis, refer to GitHub Issue #888.

Detection Methods for CVE-2024-45491

Indicators of Compromise

  • Unexpected crashes or segmentation faults in applications using libexpat for XML parsing
  • Unusual memory allocation patterns or heap corruption events in XML processing services
  • Application logs showing malformed or excessively large XML DTD structures being processed
  • Core dumps or crash reports related to dtdCopy or xmlparse.c functions

Detection Strategies

  • Monitor for abnormal XML document sizes, particularly those with unusually large DTD sections
  • Implement file integrity monitoring on libexpat library files to detect unauthorized modifications
  • Deploy endpoint detection solutions capable of identifying heap corruption exploitation attempts
  • Utilize application-level logging to track XML parsing operations and identify anomalous patterns

Monitoring Recommendations

  • Configure logging for XML parsing services to capture DTD-related operations
  • Implement resource monitoring for 32-bit systems processing XML content to detect memory anomalies
  • Enable crash reporting and analysis for applications dependent on libexpat
  • Monitor network traffic for unusually large or malformed XML documents targeting vulnerable services

How to Mitigate CVE-2024-45491

Immediate Actions Required

  • Update libexpat to version 2.6.3 or later immediately across all affected systems
  • Identify all applications and services that depend on libexpat and prioritize their updates
  • Consider migrating vulnerable 32-bit systems to 64-bit platforms where feasible
  • Implement network-level filtering to limit XML input size to trusted sources while patches are applied

Patch Information

The vulnerability has been addressed in libexpat version 2.6.3. The fix is available through GitHub Pull Request #891. System administrators should update to version 2.6.3 or later to remediate this vulnerability.

Additional security advisories have been published by downstream vendors:

  • Debian LTS Announcement
  • NetApp Security Advisory NTAP-20241018-0003

Workarounds

  • Limit XML input size at the application or network level to reduce exposure
  • Implement strict input validation for XML documents before parsing
  • Consider using alternative XML parsers if immediate patching is not possible
  • Restrict XML parsing services to internal network segments until patches can be applied

Systems should be configured to limit resource consumption during XML parsing operations. For applications that cannot be immediately patched, consider implementing pre-processing validation to reject XML documents with excessively large DTD structures before they reach the vulnerable parser.

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

  • Vulnerability Details
  • TypeBuffer Overflow

  • Vendor/TechLibexpat

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability0.68%

  • 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-190
  • Technical References
  • GitHub Issue #888

  • Debian LTS Announcement

  • NetApp Security Advisory NTAP-20241018-0003
  • Vendor Resources
  • GitHub Pull Request #891
  • Related CVEs
  • CVE-2024-50602

  • CVE-2024-45492

  • CVE-2024-45490

  • CVE-2024-28757

  • CVE-2023-52426

  • 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