PT-2024-35392

CVE-2024-52596

·

Published

2024-12-02

·

Updated

2026-09-15

Description by

CVSS 4.0
8.8
High
MetricsAV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:H/SC:L/SI:L/SA:N
Name of the Vulnerable Software and Affected Versions SimpleSAMLphp xml-common versions prior to 1.19.0
Description The issue arises when loading an untrusted XML document, such as the SAMLResponse, allowing an attacker to induce an XML External Entity (XXE) attack. This could potentially enable an attacker to read file contents from the local file system or internal network. Although there are options like NONET, an attacker can bypass them using PHP filters. The vulnerability may also lead to remote code execution (RCE) using certain PHP wrappers, but this has not been fully tested.
Recommendations For versions prior to 1.19.0, remove the LIBXML DTDLOAD | LIBXML DTDATTR options from $options to mitigate the issue. Additionally, as a defense-in-depth measure, check for the string <!DOCTYPE inside the XML before parsing it. However, note that this is not a complete fix, as there might be parser differentials that could load a DOCTYPE. Upgrade to version 1.19.0 or later to secure the handling of XML structures.
Exploitability
Exploit
Fix
Impacts
Researchers
Vendors
Affected products
Related identifiers
GHSA-2X65-FPCH-2FCM
GHSA-J5G2-Q29X-CW3H
DLA-3981-1
DSA-5822-1
USN-8770-1
Found an issue in the description? Have something to add? Feel free to write us 👾