Skip to content
OpenAdvisories
High · 8.1 CVE-2018-7711 EUVD-2022-3924GHSA-g888-g2pp-82hf

SimpleSAMLphp saml2 incorrect signature validation

Published Mar 5, 2018 · Updated Aug 5, 2024 · Assigned by mitre

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 simplesamlphp 1.15.4-1 —
Debian 12 simplesamlphp 1.15.4-1 —
Debian 7 simplesamlphp 1.9.2-1+deb7u4 DLA-1314-1
ReleasePackageFixed inAdvisory
Ubuntu Pro 18.04 LTS simplesamlphp No fix yet —
Ubuntu Pro 16.04 LTS simplesamlphp No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
Packagist simplesamlphp/saml2 < 1.10.6 1.10.6 GHSA-g888-g2pp-82hf
Packagist simplesamlphp/saml2 >= 2.0, < 2.3.8 2.3.8 GHSA-g888-g2pp-82hf
Packagist simplesamlphp/saml2 >= 3.0, < 3.1.4 3.1.4 GHSA-g888-g2pp-82hf

Advisories 1

References