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

CVE-2024-52596: SimpleSAMLphp xml-common XXE Vulnerability

CVE-2024-52596 is an XML External Entity (XXE) vulnerability in SimpleSAMLphp xml-common that allows attackers to exploit untrusted XML documents. This article covers technical details, affected versions, and mitigation.

Published: May 26, 2026

CVE-2024-52596 Overview

CVE-2024-52596 is an XML External Entity (XXE) vulnerability in SimpleSAMLphp xml-common, a library that provides shared classes for handling XML structures across SimpleSAMLphp components. The library loads untrusted XML documents, such as a SAMLResponse, without disabling external entity resolution. An attacker can craft a malicious XML payload that triggers entity expansion when parsed by the underlying DOMDocument loader. The flaw is fixed in xml-common version 1.19.0. The weakness is classified under CWE-611 (Improper Restriction of XML External Entity Reference).

Critical Impact

A remote, unauthenticated attacker can submit crafted XML to read local files, perform server-side request forgery, or disrupt the SAML authentication service.

Affected Products

  • SimpleSAMLphp xml-common versions prior to 1.19.0
  • Downstream SimpleSAMLphp components that depend on xml-common for SAML message parsing
  • Debian LTS packages bundling vulnerable xml-common releases

Discovery Timeline

  • 2024-12-02 - CVE-2024-52596 published to NVD
  • 2026-04-15 - Last updated in NVD database

Technical Details for CVE-2024-52596

Vulnerability Analysis

The vulnerability resides in the XML loading routine implemented in src/DOMDocumentFactory.php. The factory wraps PHP's DOMDocument to parse XML payloads supplied to SimpleSAMLphp, including SAML protocol messages. Before the fix, the parser did not register a restrictive external entity loader, so libxml resolved external entities referenced inside the document type definition (DTD). When the parsed XML originated from an untrusted source, such as an Identity Provider response or a federation metadata file, the attacker controlled which entities libxml resolved.

XXE exploitation against a SAML endpoint is particularly impactful because the endpoint is typically network-reachable and processes attacker-supplied XML by design. Successful exploitation can disclose sensitive files readable by the web server account, route outbound HTTP or file requests to internal services, or cause excessive resource consumption through nested entity expansion.

Root Cause

The root cause is the absence of an explicit call to libxml_set_external_entity_loader() and related hardening before invoking DOMDocument::load() or loadXML(). Without that guard, libxml's default behavior honors SYSTEM and PUBLIC identifiers in the DTD, enabling external entity resolution.

Attack Vector

The attack is delivered over the network through any SimpleSAMLphp endpoint that accepts XML. A typical vector is a crafted SAMLResponse POSTed to the Assertion Consumer Service. No authentication or user interaction is required to deliver the payload.

php
 namespace SimpleSAML\XML;
 
 use DOMDocument;
-use RuntimeException;
 use SimpleSAML\Assert\Assert;
 use SimpleSAML\XML\Exception\IOException;
+use SimpleSAML\XML\Exception\RuntimeException;
 use SimpleSAML\XML\Exception\UnparseableXMLException;
 
-use function defined;
 use function file_get_contents;
+use function func_num_args;
 use function libxml_clear_errors;
 use function libxml_get_last_error;
+use function libxml_set_external_entity_loader;
 use function libxml_use_internal_errors;
 use function sprintf;

Source: GitHub patch commit fa4ade39. The patch introduces libxml_set_external_entity_loader so the factory can install a loader that rejects external entity resolution during XML parsing.

Detection Methods for CVE-2024-52596

Indicators of Compromise

  • Inbound SAML messages containing a <!DOCTYPE> declaration or <!ENTITY> definitions referencing SYSTEM or PUBLIC identifiers.
  • Outbound HTTP, FTP, or file:// requests originating from the SimpleSAMLphp host immediately after processing a SAML request.
  • Web server error logs referencing libxml warnings, failed entity loads, or unexpected file access from the PHP-FPM or Apache user.

Detection Strategies

  • Inspect SAML traffic at the reverse proxy or WAF for XML payloads that include DTD declarations, since legitimate SAML assertions do not require them.
  • Hunt for processes spawned by the web server reading files outside the SimpleSAMLphp document root, such as /etc/passwd or configuration files.
  • Correlate authentication endpoint requests with anomalous DNS resolutions or egress connections to attacker-controlled hosts.

Monitoring Recommendations

  • Enable verbose logging in SimpleSAMLphp and forward logs to a centralized analytics platform for retention and search.
  • Alert on the SimpleSAMLphp host opening sockets to internal RFC1918 ranges that are not part of the documented federation topology.
  • Track the installed version of the simplesamlphp/xml-common Composer package across hosts and flag any release earlier than 1.19.0.

How to Mitigate CVE-2024-52596

Immediate Actions Required

  • Upgrade simplesamlphp/xml-common to version 1.19.0 or later using Composer and redeploy all dependent applications.
  • Apply the corresponding Debian LTS package update referenced in the Debian LTS announcement.
  • Audit recent web server and SimpleSAMLphp logs for SAML payloads containing DTD or entity declarations.

Patch Information

The fix is published in commit fa4ade39 and described in GHSA-2x65-fpch-2fcm. The patch installs a custom libxml external entity loader that prevents resolution of SYSTEM and PUBLIC references during DOMDocument parsing. Upgrading the package to 1.19.0 is the authoritative remediation.

Workarounds

  • Front SimpleSAMLphp endpoints with a WAF rule that rejects XML payloads containing <!DOCTYPE or <!ENTITY declarations.
  • Restrict outbound network access from the SimpleSAMLphp host so that exploited XXE payloads cannot reach internal services or external collectors.
  • Run the PHP worker under a least-privilege account with read access limited to required directories to constrain file disclosure impact.
bash
# Upgrade xml-common to the patched release
composer require simplesamlphp/xml-common:^1.19.0
composer update simplesamlphp/xml-common

# Verify installed version
composer show simplesamlphp/xml-common | grep versions

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

  • Vulnerability Details
  • TypeXXE

  • Vendor/TechSimplesamlphp

  • SeverityHIGH

  • CVSS Score8.8

  • EPSS Probability0.22%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:H/SC:L/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-611
  • Technical References
  • GitHub Commit Update

  • GitHub Security Advisory GHSA-2x65-fpch-2fcm

  • Debian LTS Announcement
  • Related CVEs
  • CVE-2026-32600: Simplesamlphp Xml-security XXE Vulnerability

  • CVE-2025-65954: SimpleSAMLphp-casserver CSRF Vulnerability

  • CVE-2025-27773: SimpleSAMLphp Auth Bypass 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