# CVE-2018-7711: SimpleSAMLphp saml2 incorrect signature validation

- Severity: High 8.1 (CVSS:3.0, scored by NVD) `CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.19%, higher than 68% of CVEs (2026-12-01)
- Published: 2018-03-05T22:00:00.000Z
- Modified: 2026-06-17T02:03:34.117Z
- Also known as: GHSA-g888-g2pp-82hf
- Weaknesses: CWE-347
- 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- simplesamlphp/saml2 (Packagist): before 1.10.6; from 2.0 before 2.3.8; from 3.0 before 3.1.4
- simplesamlphp simplesamlphp: before 1.15.4
- 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
- debian debian_linux: 7.0

## Every score

- GitHub: CVSS:3.0 8.1 High `CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.0 8.1 High `CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 6.8 Medium `AV:N/AC:M/Au:N/C:P/I:P/A:P`

## References

- <https://github.com/simplesamlphp/saml2/commit/4f6af7f69f29df8555a18b9bb7b646906b45924d> (patch, web)
- <https://lists.debian.org/debian-lts-announce/2018/03/msg00017.html> (mailing-list, third-party-advisory, web)
- <https://simplesamlphp.org/security/201803-01> (vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2018-7711> (advisory)
- <https://github.com/FriendsOfPHP/security-advisories/blob/master/simplesamlphp/saml2/CVE-2018-7711.yaml> (web)

## Sources

- CVE List: [CVE-2018-7711](https://www.cve.org/CVERecord?id=CVE-2018-7711), CVE Terms of Use, modified 2024-08-05
- GitHub Advisory Database: [GHSA-g888-g2pp-82hf](https://github.com/advisories/GHSA-g888-g2pp-82hf), CC-BY-4.0, modified 2024-02-16
- NVD: [CVE-2018-7711](https://nvd.nist.gov/vuln/detail/CVE-2018-7711), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2018-7711 · Whole record: https://cve.day/CVE-2018-7711.json · Rebuilt by cve.day 2026-11-25T22:57:36.793Z
