XML External Entity injection in SimpleSAMLphp - CVE-2024-52596

 

XML External Entity injection in SimpleSAMLphp - CVE-2024-52596

Published: December 2, 2024


Vulnerability identifier: #VU101091
CSH Severity: High
CVSS v4: 8.8 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2024-52596
CWE-ID: CWE-611
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to gain access to sensitive information.

The vulnerability exists due to insufficient validation of user-supplied XML input in saml2/src/SAML2/DOMDocumentFactory.php when parsing SAML messages. A remote attacker can pass a specially crafted XML code to the affected application and view contents of arbitrary files on the system or initiate requests to external systems.

Successful exploitation of the vulnerability may allow an attacker to view contents of arbitrary file on the server or perform network scanning of internal and external infrastructure.


Affected software

SimpleSAMLphp
Debian Linux
simplesamlphp (Debian package)

How to mitigate CVE-2024-52596

Install updates from vendor's website.

SimpleSAMLphp - addressed in versions 2.0.15, 2.1.7, 2.2.4, 2.3.4
simplesamlphp (Debian package) - update to 1.19.7-1+deb12u1

External References

Related Security Bulletins