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-31573

CVE-2024-31573: XMLUnit for Java RCE Vulnerability

CVE-2024-31573 is a remote code execution vulnerability in XMLUnit for Java that allows attackers to execute code via untrusted XSLT stylesheets. This article covers technical details, affected versions, and mitigation.

Updated: January 22, 2026

CVE-2024-31573 Overview

CVE-2024-31573 is a code execution vulnerability in XMLUnit for Java versions prior to 2.10.0. In the default configuration, the library enables XSLT extension functions, which could allow attackers to execute arbitrary code through untrusted stylesheets used for XSLT transformations. This vulnerability stems from improper resource transfer between spheres (CWE-669), where potentially dangerous XSLT capabilities are exposed without adequate restrictions.

Critical Impact

Applications using XMLUnit for Java with default settings may be vulnerable to code execution if they process untrusted XSLT stylesheets, potentially allowing attackers to compromise the application and underlying system.

Affected Products

  • XMLUnit for Java versions before 2.10.0

Discovery Timeline

  • 2025-10-17 - CVE CVE-2024-31573 published to NVD
  • 2025-10-21 - Last updated in NVD database

Technical Details for CVE-2024-31573

Vulnerability Analysis

The vulnerability resides in XMLUnit for Java's handling of XSLT transformations. XSLT (Extensible Stylesheet Language Transformations) is a powerful language for transforming XML documents, but it also supports extension functions that can invoke Java methods directly. When XMLUnit processes XSLT stylesheets with extension functions enabled by default, an attacker who can supply a malicious stylesheet gains the ability to execute arbitrary Java code within the context of the application.

This type of vulnerability is particularly dangerous in scenarios where applications accept XML/XSLT content from untrusted sources, such as user uploads, API inputs, or external integrations. The local attack vector indicates that exploitation requires some level of local access or the ability to influence local files/inputs that the vulnerable application processes.

Root Cause

The root cause is classified under CWE-669 (Incorrect Resource Transfer Between Spheres). XMLUnit for Java, in versions before 2.10.0, enables XSLT extension functions by default. These extension functions provide a bridge between XSLT processing and Java code execution, effectively transferring control from the XML processing sphere to the Java execution sphere without proper security boundaries. The permissive default configuration fails to restrict potentially dangerous capabilities that should be explicitly opt-in rather than opt-out.

Attack Vector

Exploitation requires local access to supply or influence XSLT stylesheets processed by a vulnerable XMLUnit instance. An attacker must craft a malicious XSLT stylesheet containing extension function calls that invoke arbitrary Java methods. When the application uses XMLUnit to perform an XSLT transformation with this stylesheet, the embedded extension functions execute, allowing the attacker to run arbitrary code.

The attack scenario typically involves an application that accepts XSLT stylesheets from users or external sources for XML transformation purposes. Without proper validation or with XMLUnit's insecure defaults, these stylesheets become a vector for code execution.

For technical details on the vulnerability mechanism, refer to the GitHub Security Advisory and the GitHub Issue Discussion.

Detection Methods for CVE-2024-31573

Indicators of Compromise

  • Unexpected Java method invocations during XML/XSLT processing operations
  • Anomalous system calls or process spawning originating from Java applications using XMLUnit
  • XSLT stylesheets containing extension function declarations or namespace bindings to Java classes

Detection Strategies

  • Review application dependencies for XMLUnit for Java versions below 2.10.0
  • Implement input validation to detect XSLT stylesheets containing extension function declarations
  • Monitor Java applications for unexpected code execution patterns during XML processing
  • Use Software Composition Analysis (SCA) tools to identify vulnerable XMLUnit versions

Monitoring Recommendations

  • Enable detailed logging for XSLT transformation operations within applications
  • Monitor file system access and network connections from applications performing XML transformations
  • Implement application-level monitoring to detect anomalous behavior during XML processing workflows

How to Mitigate CVE-2024-31573

Immediate Actions Required

  • Upgrade XMLUnit for Java to version 2.10.0 or later immediately
  • Audit all applications using XMLUnit for Java to identify vulnerable instances
  • Restrict XSLT stylesheet sources to trusted origins only
  • Implement input validation to sanitize or reject untrusted XSLT content

Patch Information

The vulnerability has been addressed in XMLUnit for Java version 2.10.0. The fix disables XSLT extension functions by default, ensuring that potentially dangerous capabilities must be explicitly enabled. Review the GitHub Commit Update for implementation details.

Workarounds

  • If immediate upgrade is not possible, configure XMLUnit to explicitly disable XSLT extension functions
  • Implement application-level controls to reject XSLT stylesheets containing extension function declarations
  • Isolate XML processing operations in sandboxed environments with restricted permissions
  • Use allowlisting to permit only known, trusted XSLT stylesheets
bash
# Maven dependency update example
# Update pom.xml to use patched version
mvn versions:use-latest-versions -Dincludes=org.xmlunit:*
# Verify the updated version
mvn dependency:tree | grep xmlunit

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechXmlunit

  • SeverityMEDIUM

  • CVSS Score4.0

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-669
  • Technical References
  • GitHub Security Advisory

  • GitHub Commit Update

  • GitHub Issue Discussion
  • Latest CVEs
  • CVE-2025-11419: Keycloak TLS DoS Vulnerability

  • CVE-2025-13947: WebKitGTK Information Disclosure Flaw

  • CVE-2026-40322: SiYuan Knowledge Management RCE Vulnerability

  • CVE-2026-40318: SiYuan Path Traversal 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