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-2021-40690

CVE-2021-40690: Apache Santuario XML Security XXE Flaw

CVE-2021-40690 is an XXE vulnerability in Apache Santuario XML Security for Java that allows attackers to extract local XML files via XPath Transform abuse. This article covers technical details, affected versions, and mitigations.

Published: February 25, 2026

CVE-2021-40690 Overview

CVE-2021-40690 is an information disclosure vulnerability affecting Apache Santuario - XML Security for Java. All versions prior to 2.2.3 and 2.1.7 fail to properly pass the "secureValidation" property when creating a KeyInfo from a KeyInfoReference element. This security bypass allows attackers to exploit an XPath Transform within a RetrievalMethod element to extract arbitrary local .xml files from the target system.

The vulnerability stems from improper security validation propagation in the XML signature processing pipeline, enabling unauthorized access to sensitive configuration files, credentials, and other XML-based data stored on vulnerable systems.

Critical Impact

Attackers can leverage this vulnerability to exfiltrate sensitive XML files from affected systems through crafted XML signature requests, potentially exposing configuration data, credentials, and internal application structures.

Affected Products

  • Apache Santuario XML Security for Java (versions prior to 2.2.3 and 2.1.7)
  • Apache CXF 3.4.4
  • Apache TomEE (multiple versions)
  • Debian Linux 9.0, 10.0, 11.0
  • Oracle Agile PLM 9.3.6
  • Oracle Commerce Guided Search 11.3.2
  • Oracle Commerce Platform 11.3.2
  • Oracle Communications Diameter Intelligence Hub
  • Oracle Communications Messaging Server 8.1
  • Oracle FLEXCUBE Private Banking 12.1.0
  • Oracle Outside In Technology 8.5.5
  • Oracle PeopleSoft Enterprise PeopleTools 8.58, 8.59
  • Oracle Retail Bulk Data Integration 16.0.3
  • Oracle Retail Financial Integration (14.1.3.2, 15.0.3.1, 16.0.3, 19.0.1)
  • Oracle Retail Integration Bus (14.1.3.2, 15.0.3.1, 16.0.3, 19.0.1)
  • Oracle Retail Merchandising System (16.0.3, 19.0.1)
  • Oracle Retail Service Backbone (14.1.3.2, 15.0.3.1, 16.0.3, 19.0.1)
  • Oracle WebLogic Server (12.2.1.4.0, 14.1.1.0.0)

Discovery Timeline

  • September 19, 2021 - CVE-2021-40690 published to NVD
  • November 21, 2024 - Last updated in NVD database

Technical Details for CVE-2021-40690

Vulnerability Analysis

This vulnerability exploits a flaw in how Apache Santuario handles the secureValidation property during XML signature processing. When a KeyInfo element is created from a KeyInfoReference, the security validation settings are not properly inherited or applied to subsequent operations, including XPath Transform processing.

The root issue lies in the XML signature validation flow where security constraints established at a higher level fail to propagate to child element processing. This creates a security gap that allows potentially dangerous XPath operations to execute without the intended restrictions.

Attackers can craft malicious XML documents containing specially constructed RetrievalMethod elements with XPath Transform directives. When processed by a vulnerable version of the library, these transforms can read and exfiltrate local XML files from the server's file system.

Root Cause

The vulnerability is classified under CWE-200 (Exposure of Sensitive Information to an Unauthorized Actor). The underlying cause is the failure to maintain security context when processing KeyInfoReference elements within the XML Security library. Specifically, when the library creates a KeyInfo object from a KeyInfoReference, it does not correctly pass the secureValidation boolean flag, which is designed to restrict potentially dangerous operations like external entity resolution and certain XPath expressions.

Attack Vector

The attack is network-based and requires no authentication or user interaction. An attacker can exploit this vulnerability by sending a crafted XML document to an application that processes XML signatures using a vulnerable version of Apache Santuario. The malicious document would include:

  1. A RetrievalMethod element pointing to a local XML file
  2. An XPath Transform that extracts data from the target file
  3. A KeyInfoReference structure that bypasses the secure validation checks

When the application processes this signature, the XPath Transform executes without security restrictions, allowing the attacker to read the contents of local XML files accessible to the application process.

Detection Methods for CVE-2021-40690

Indicators of Compromise

  • Unexpected XML signature validation requests containing RetrievalMethod elements with file:// URIs
  • Application logs showing access to local XML files through signature processing
  • Network traffic containing XML documents with KeyInfoReference elements referencing local paths
  • Unusual file system access patterns from Java-based web applications targeting XML configuration files

Detection Strategies

  • Monitor for XML documents containing RetrievalMethod elements with local file paths (file://) in incoming requests
  • Implement logging for XML signature validation operations, particularly those involving KeyInfoReference processing
  • Deploy web application firewall rules to detect XPath Transform patterns in XML payloads targeting local resources
  • Use static code analysis to identify applications using vulnerable versions of Apache Santuario XML Security

Monitoring Recommendations

  • Enable verbose logging for XML signature processing components to capture RetrievalMethod and Transform operations
  • Monitor file access patterns from Java application processes for unexpected reads of XML files outside normal application scope
  • Implement network-level monitoring for large XML responses that may indicate successful data exfiltration
  • Review application dependencies regularly to identify outdated Apache Santuario library versions

How to Mitigate CVE-2021-40690

Immediate Actions Required

  • Upgrade Apache Santuario XML Security for Java to version 2.2.3 or 2.1.7 or later immediately
  • Audit all applications using Apache CXF, TomEE, or Oracle products for vulnerable Santuario versions
  • Apply Oracle Critical Patch Updates from April 2022 and July 2022 for affected Oracle products
  • Implement input validation for XML documents to reject suspicious RetrievalMethod elements with local file references

Patch Information

Apache has released patched versions 2.2.3 and 2.1.7 of the Santuario XML Security for Java library that properly propagate the secureValidation property during KeyInfoReference processing. Organizations should update to these versions or later. For Oracle products, refer to the Oracle Security Alert April 2022 and Oracle Security Alert July 2022 for product-specific patches. Debian users should refer to the Debian Security Advisory DSA-5010 for distribution-specific updates.

Workarounds

  • Implement application-level filtering to reject XML documents containing RetrievalMethod elements with file:// URIs
  • Configure web application firewalls to block XML payloads containing XPath Transform elements referencing local paths
  • Restrict file system permissions for Java application processes to limit potential data exposure
  • Enable XML signature validation in strict mode where available, though this may not fully address the vulnerability without patching
bash
# Maven dependency update example
# Update pom.xml to use patched version:
# <dependency>
#     <groupId>org.apache.santuario</groupId>
#     <artifactId>xmlsec</artifactId>
#     <version>2.2.3</version>
# </dependency>

# Verify current version in use
mvn dependency:tree | grep xmlsec

# Force update to patched version
mvn versions:use-latest-versions -Dincludes=org.apache.santuario:xmlsec

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

  • Vulnerability Details
  • TypeXXE

  • Vendor/TechApache Santuario

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.38%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-200
  • Technical References
  • Apache TomEE Commit Notification

  • Apache CXF Issue Notification

  • Apache TomEE Commit Notification

  • Apache TomEE Commit Notification

  • Apache POI User Notification

  • Apache TomEE Commit Notification

  • Apache TomEE Commit Notification

  • Apache TomEE Commit Notification

  • Debian LTS Security Notice

  • NetApp Security Advisory NTAP-20230818-0002

  • Debian Security Advisory DSA-5010
  • Vendor Resources
  • Apache Santuario Dev Update

  • Oracle Security Alert April 2022

  • Oracle Security Alert July 2022
  • Latest CVEs
  • CVE-2025-49454: TinySalt Path Traversal Vulnerability

  • CVE-2025-48261: MultiVendorX Information Disclosure Flaw

  • CVE-2025-32119: CardGate WooCommerce SQL Injection Flaw

  • CVE-2025-26879: s2Member Plugin Reflected XSS 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