CVE-2018-7711
JSON

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 packageVersionsReported by
Unspecified productn/aCVE List
simplesamlphp/saml2 (Packagist)before 1.10.6, from 2.0 before 2.3.8, from 3.0 before 3.1.4GitHub Advisory Database
simplesamlphp simplesamlphpbefore 1.15.4NVD
simplesamlphp saml2from 1.0.0 before 1.10.6, from 2.0.0 before 2.3.8, from 3.0.0 before 3.1.4NVD
debian debian_linux7.0NVD

All scores

GitHub8.1high CVSS:3.0CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD8.1high CVSS:3.0CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD6.8medium CVSS:2.0AV: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

SourceRecordLicence
CVE ListCVE-2018-7711 changed 2024-08-05CVE Terms of Use
GitHub Advisory DatabaseGHSA-g888-g2pp-82hf changed 2024-02-16CC-BY-4.0
NVDCVE-2018-7711 changed 2026-06-17Public domain