GHSA-j5g2-q29x-cw3h: SimpleSAMLphp vulnerable to XXE in parsing SAML messages
This advisory was withdrawn on Dec 4, 2024. The publisher no longer considers it a valid vulnerability.
Withdrawn Advisory This advisory has been withdrawn because the vulnerability affects users of the SimpleSAMLphp tarball, not the SimpleSAMLphp Composer package. The underlying information about CVE-2024-52596 is still valid. Original Description Summary When loading an (untrusted) XML document, for example the SAMLResponse, it's possible to induce an XXE.
Published Dec 2, 2024 · Updated Dec 4, 2024
Affected packages
simplesamlphp/simplesamlphp
- Ecosystem
- Composer (PHP)
- Affected
- >= 2.3.0, < 2.3.4
- Fixed in
- 2.3.4
- Check
composer show simplesamlphp/simplesamlphp
simplesamlphp/simplesamlphp
- Ecosystem
- Composer (PHP)
- Affected
- >= 2.2.0, < 2.2.4
- Fixed in
- 2.2.4
- Check
composer show simplesamlphp/simplesamlphp
simplesamlphp/simplesamlphp
- Ecosystem
- Composer (PHP)
- Affected
- >= 2.1.0, < 2.1.7
- Fixed in
- 2.1.7
- Check
composer show simplesamlphp/simplesamlphp
simplesamlphp/simplesamlphp
- Ecosystem
- Composer (PHP)
- Affected
- < 2.0.15
- Fixed in
- 2.0.15
- Check
composer show simplesamlphp/simplesamlphp
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Withdrawn Advisory
This advisory has been withdrawn because the vulnerability affects users of the SimpleSAMLphp tarball, not the SimpleSAMLphp Composer package. The underlying information about CVE-2024-52596 is still valid.
Original Description
Summary
When loading an (untrusted) XML document, for example the SAMLResponse, it's possible to induce an XXE.
Mitigation:
Remove the LIBXML_DTDLOAD | LIBXML_DTDATTR options from $options is in: https://github.com/simplesamlphp/saml2/blob/717c0adc4877ebd58428637e5626345e59fa0109/src/SAML2/DOMDocumentFactory.php#L41
Background / details
To be published on Dec 8th
Credited to ahacker1-securesaml.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Composer (PHP) vulnerabilities
All Composer (PHP) entriesCVE-2026-49284
SimpleSAMLphp SP accepts a response from an unexpected IdP when unsigned `Response/InResponseTo` is combined with a signed assertion lacking `SubjectConfirmationData/InResponseTo`
high7.1Jul 2, 2026GHSA-7wh8-jrq7-p27f
SimpleSAMLphp exposes credentials in session storage
medium5.3May 28, 2024GHSA-ppm4-r2vc-pg74
SimpleSAMLphp Information Disclosure vulnerability
medium5.9May 28, 2024GHSA-v858-922f-fj9v
SimpleSAMLphp Link Injection vulnerability
medium5.4May 28, 2024GHSA-vpr3-cw3h-prw8
SimpleSAMLphp Reflected Cross-site Scripting vulnerability
medium6.1May 28, 2024
