A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
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-43398

CVE-2024-43398: Ruby-lang Rexml DoS Vulnerability

CVE-2024-43398 is a denial of service vulnerability in Ruby-lang Rexml that exploits deep XML elements with identical local name attributes. This article covers technical details, affected versions, impact, and mitigation.

Updated: January 22, 2026

CVE-2024-43398 Overview

CVE-2024-43398 is a Denial of Service (DoS) vulnerability in REXML, the XML toolkit for Ruby. The vulnerability exists in REXML gem versions prior to 3.3.6 and can be triggered when parsing XML documents containing many deeply nested elements that share the same local name attributes. This algorithmic complexity attack allows remote attackers to exhaust system resources by sending specially crafted XML documents to applications using the vulnerable tree parser API.

Critical Impact

Applications parsing untrusted XML content using REXML's tree parser API (such as REXML::Document.new) are vulnerable to resource exhaustion attacks that can render services unavailable.

Affected Products

  • ruby-lang rexml (versions prior to 3.3.6)
  • netapp bootstrap_os
  • netapp hci_compute_node

Discovery Timeline

  • 2024-08-22 - CVE-2024-43398 published to NVD
  • 2025-11-03 - Last updated in NVD database

Technical Details for CVE-2024-43398

Vulnerability Analysis

This vulnerability is classified as CWE-776 (Improper Restriction of Recursive Entity References in DTDs), which relates to XML Entity Expansion attacks. The flaw manifests when REXML processes XML documents with deeply nested elements sharing identical local name attributes. The parser's handling of these structures leads to excessive computational overhead, causing algorithmic complexity issues that can exhaust CPU and memory resources.

The vulnerability specifically affects the tree parser API implementation in REXML, which builds an in-memory representation of the XML document. When processing maliciously crafted XML with recursive or deeply nested structures, the parser's resource consumption grows disproportionately to the input size, making it susceptible to denial of service attacks.

Importantly, this vulnerability does not affect all REXML parsing modes. The stream parser API and SAX2 parser API are not impacted because they process XML documents sequentially without building complete in-memory tree structures.

Root Cause

The root cause lies in the tree parser's algorithm for handling deeply nested XML elements with identical local name attributes. When parsing such structures, the implementation lacks proper bounds checking and resource limits, allowing attackers to craft XML payloads that cause exponential or polynomial resource consumption relative to input size.

Attack Vector

The attack vector is network-based, requiring the attacker to submit a maliciously crafted XML document to an application using the vulnerable REXML::Document.new API or similar tree parser methods. The attack does not require authentication or user interaction, though it has high attack complexity due to the specific conditions required to trigger the vulnerability effectively.

An attacker would craft an XML document containing numerous deeply nested elements with matching local name attributes. When this document is parsed by a vulnerable application, the server experiences significant resource consumption that can lead to service degradation or complete unavailability.

The vulnerability can be exploited by sending specially crafted XML with deeply nested elements sharing identical local name attributes to applications using REXML's tree parser API. For detailed technical information, see the GitHub Security Advisory.

Detection Methods for CVE-2024-43398

Indicators of Compromise

  • Unusual CPU or memory spikes in Ruby application processes when processing XML input
  • Application timeouts or hangs during XML parsing operations
  • Large XML payloads in request logs with deeply nested element structures
  • Service availability issues correlated with XML processing activity

Detection Strategies

  • Monitor Ruby application resource utilization for anomalous spikes during XML processing
  • Implement request logging to capture XML payload sizes and processing times
  • Deploy web application firewalls (WAF) with rules to detect oversized or deeply nested XML structures
  • Use application performance monitoring (APM) to track REXML::Document.new call durations

Monitoring Recommendations

  • Set up alerts for Ruby process memory and CPU usage thresholds
  • Monitor application response times for endpoints that accept XML input
  • Track error rates related to XML parsing timeouts or failures
  • Implement logging for rejected or rate-limited XML requests

How to Mitigate CVE-2024-43398

Immediate Actions Required

  • Upgrade REXML gem to version 3.3.6 or later immediately
  • Audit applications to identify usage of REXML tree parser API with untrusted input
  • Implement input validation to restrict XML document depth and size
  • Consider switching to stream parser or SAX2 parser APIs for processing untrusted XML

Patch Information

The REXML development team has released version 3.3.6 which includes the security patch addressing this vulnerability. Organizations should upgrade to this version or later to remediate the issue. The fix is available through standard Ruby gem distribution channels.

For additional guidance, refer to the GitHub Release v3.3.6, Debian LTS Announcement, and NetApp Security Advisory.

Workarounds

  • Use REXML stream parser API or SAX2 parser API instead of tree parser for untrusted XML
  • Implement request size limits at the web server or application level for XML endpoints
  • Deploy reverse proxy or WAF rules to filter potentially malicious XML payloads
  • Consider using alternative XML parsing libraries with built-in protection against entity expansion attacks
bash
# Upgrade REXML gem to patched version
gem update rexml

# Or specify minimum version in Gemfile
# gem 'rexml', '>= 3.3.6'
bundle update rexml

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechRuby

  • SeverityMEDIUM

  • CVSS Score5.9

  • EPSS Probability1.14%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-776
  • Technical References
  • GitHub Release v3.3.6

  • Debian LTS Announcement

  • NetApp Security Advisory ntap-20250103-0006
  • Vendor Resources
  • GitHub Security Advisory GHSA-vmwr-mc7x-5vc3
  • Related CVEs
  • CVE-2026-42245: Ruby Net::IMAP DoS Vulnerability

  • CVE-2026-42256: Ruby Net::IMAP DOS Vulnerability

  • CVE-2025-43857: Ruby-lang Net IMAP DoS Vulnerability

  • CVE-2023-36617: Ruby-lang URI 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