8.1high
SimpleSAMLphp saml2 incorrect signature validation
- Severity
- 8.1high CVSS:3.0 by NVD
- Exploit likelihood
- 1.19% (higher than 68% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- GHSA-g888-g2pp-82hf
Description
HTTPRedirect.php in the saml2 library in SimpleSAMLphp before 1.15.4 has an incorrect check of return values in the signature validation utilities, allowing an attacker to get invalid signatures accepted as valid by forcing an error during validation. This occurs because of a dependency on PHP functionality that interprets a -1 error code as a true boolean value.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| simplesamlphp/saml2 (Packagist) | before 1.10.6, from 2.0 before 2.3.8, from 3.0 before 3.1.4 | GitHub Advisory Database |
| simplesamlphp simplesamlphp | before 1.15.4 | NVD |
| simplesamlphp saml2 | from 1.0.0 before 1.10.6, from 2.0.0 before 2.3.8, from 3.0.0 before 3.1.4 | NVD |
| debian debian_linux | 7.0 | NVD |
All scores
| GitHub | 8.1high CVSS:3.0 | CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 8.1high CVSS:3.0 | CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 6.8medium CVSS:2.0 | AV:N/AC:M/Au:N/C:P/I:P/A:P |
Classification
What each source says
CVE List
HTTPRedirect.php in the saml2 library in SimpleSAMLphp before 1.15.4 has an incorrect check of return values in the signature validation utilities, allowing an attacker to get invalid signatures accepted as valid by forcing an error during validation. This occurs because of a dependency on PHP functionality that interprets a -1 error code as a true boolean value.
NVD (es)
HTTPRedirect.php en la biblioteca saml2 en SimpleSAMLphp, en versiones anteriores a la 1.15.4, tiene una comprobación incorrecta de valores de retorno en las utilidades de validación de firma. Esto permite que un atacante haga que firmas no válidas se acepten como válidas forzando un error durante la validación. Esto ocurre debido a la dependencia en una funcionalidad de PHP que interpreta un código de error -1 como valor boleano true.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2018-7711 changed 2024-08-05 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-g888-g2pp-82hf changed 2024-02-16 | CC-BY-4.0 |
| NVD | CVE-2018-7711 changed 2026-06-17 | Public domain |