Skip to main content
Vulnerability Database/CVE-2024-47582

CVE-2024-47582: XML Entity Expansion (XXE) Vulnerability

CVE-2024-47582 is an XML Entity Expansion vulnerability that allows unauthenticated attackers to send malicious XML input, causing limited availability impact. This post covers technical details, security risks, and mitigation.

Published:

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

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2024-47582 Overview

CVE-2024-47582 is an XML External Entity (XXE) Expansion vulnerability affecting an SAP product. The flaw stems from missing validation of XML input on an exposed endpoint. An unauthenticated remote attacker can submit crafted XML payloads that trigger entity expansion, consuming server resources. The impact is limited to application availability, with no confidentiality or integrity consequences. SAP tracks remediation guidance under SAP Note #3351041, published as part of the SAP Security Patch Day cycle.

Critical Impact

Unauthenticated network-based attackers can degrade application availability by triggering XML entity expansion against a vulnerable SAP endpoint.

Affected Products

  • SAP product referenced in SAP Note #3351041
  • Specific product and version details are published in the vendor advisory
  • Consult the SAP Security Patch Day announcement for exact affected releases

Discovery Timeline

  • 2024-12-10 - CVE-2024-47582 published to NVD
  • 2026-06-17 - Last updated in NVD database

Technical Details for CVE-2024-47582

Vulnerability Analysis

The vulnerability is classified as [CWE-611] Improper Restriction of XML External Entity Reference. A vulnerable SAP endpoint parses XML input without applying restrictions on entity declarations or expansion limits. When an attacker submits a document containing nested or recursive entity definitions, the parser expands these references during processing. Each expansion multiplies memory and CPU consumption, which can exhaust server resources.

The attack requires no authentication and no user interaction. Because the endpoint is reachable over the network, exploitation can be performed remotely with a single HTTP request carrying the malicious XML body. The CWE-611 classification indicates the underlying XML parser is not hardened against external entity processing.

Root Cause

The root cause is missing input validation on XML documents received by the affected endpoint. The parser accepts documents that declare internal entities and allows them to expand recursively. Secure XML parsing requires disabling external entity resolution and enforcing entity expansion limits, neither of which is enforced on the vulnerable code path.

Attack Vector

An unauthenticated attacker sends an HTTP request containing an XML payload. The payload defines entities that reference other entities in a nested pattern, such as the classic "billion laughs" structure. When the SAP endpoint parses the document, memory and CPU usage grow non-linearly until the request completes, times out, or consumes available resources. The resulting condition degrades availability for legitimate users of the application.

No verified public proof-of-concept is available for this CVE. Technical specifics are restricted to the vendor advisory.

Detection Methods for CVE-2024-47582

Indicators of Compromise

  • Inbound HTTP requests to SAP endpoints containing XML bodies with <!ENTITY> declarations or recursive entity references
  • Sudden spikes in CPU or memory utilization on SAP application servers coinciding with XML parsing activity
  • Application worker threads stalled or terminated while processing single XML requests

Detection Strategies

  • Inspect XML payloads at the web application firewall for DOCTYPE declarations and internal entity definitions
  • Correlate SAP application performance metrics with inbound request patterns to identify entity expansion attempts
  • Baseline normal XML request sizes and alert on anomalously small payloads producing disproportionate resource consumption

Monitoring Recommendations

  • Enable verbose logging on SAP endpoints that accept XML input to capture request bodies for forensic review
  • Monitor process memory growth and request processing time for SAP work processes
  • Forward web server and SAP gateway logs to a centralized analytics platform for correlation and anomaly detection

How to Mitigate CVE-2024-47582

Immediate Actions Required

  • Apply the patch described in SAP Note #3351041 to all affected SAP systems
  • Restrict network exposure of SAP endpoints that accept XML input to trusted sources where feasible
  • Deploy WAF rules that reject XML payloads containing DOCTYPE declarations or entity definitions

Patch Information

SAP has released a fix as part of its Security Patch Day cycle. Refer to SAP Note #3351041 for the official patch and installation guidance. Additional context is available in the SAP Security Patch Day Announcement. Customers should prioritize deployment based on exposure of the affected endpoint.

Workarounds

  • Configure XML parsers to disable external entity resolution and enforce entity expansion limits
  • Place an inspecting proxy or WAF in front of SAP endpoints to filter malicious XML before it reaches the application
  • Rate-limit requests to the affected endpoint to reduce the blast radius of resource exhaustion attempts
bash
# Example WAF rule concept to block XML payloads containing DOCTYPE declarations
# ModSecurity-style rule
SecRule REQUEST_HEADERS:Content-Type "@contains xml" \
  "chain,id:1004782,phase:2,deny,status:400,msg:'Blocked XML with DOCTYPE (CVE-2024-47582)'"
  SecRule REQUEST_BODY "@rx (?i)<!DOCTYPE[^>]+<!ENTITY" "t:none"

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

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

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.