SimpleSAMLphp SAML2: Possible DoS via XPath Transform
simplesamlphp saml2
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| simplesamlphp/saml2 Packagist |
|
|
| simplesamlphp/saml2-legacy Packagist |
|
simplesamlphp saml2
| Product | Affected | Fixed in |
|---|---|---|
| simplesamlphp/saml2 Packagist |
|
|
| simplesamlphp/saml2-legacy Packagist |
|
|
The SimpleSAMLphp SAML2 library is a PHP library for SAML2 related functionality. In 4.19.2 and 4.20.2, the library permits attacker-controlled XPath transforms while processing XML signatures in specially crafted SAML messages. XPath evaluation can consume uncontrolled processing resources, allowing a remote unauthenticated attacker to deny service to any entity relying on SimpleSAMLphp or directly on the SAML2 library. The mitigation limits the number of transforms, permits only transform algorithms identified by the SAML 2.0 Core specification, and specifically rejects XPath transforms. This issue is fixed in versions 4.19.3 and 4.20.3.
From the CVE record · GitHub_M
The SimpleSAMLphp SAML2 library permits attacker-controlled XPath transforms when processing XML signatures in specially crafted SAML messages. A remote, unauthenticated attacker can cause excessive resource consumption and deny service to an entity relying on SimpleSAMLphp or the SAML2 library.
Check deployments using the Packagist packages simplesamlphp/saml2 or simplesamlphp/saml2-legacy at versions >=4.20.0 <4.20.3 or <4.19.3.