CVE-2025-27773
SimpleSAMLphp SAML2 library has incorrect signature verification for HTTP-Redirect binding
Reported by github_m · Published March 11, 2025
simplesamlphp/saml2 is fixed in 5.0.0-alpha.20 and 4.17.0 (Packagist)
The SimpleSAMLphp SAML2 library is a PHP library for SAML2 related functionality. Prior to versions 4.17.0 and 5.0.0-alpha.20, there is a signature confusion attack in the HTTPRedirect binding. An attacker with any signed SAMLResponse via the HTTP-Redirect binding can cause the application to accept an unsigned message. Versions 4.17.0 and 5.0.0-alpha.20 contain a fix for the issue.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| simplesamlphp/saml2 | Packagist | 5.0.0-alpha.20, 4.17.0 |
| simplesamlphp/saml2-legacy | Packagist | 4.17.0 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| simplesamlphp | saml2 | < 4.17.0, >= 5.0.0-alpha.1, < 5.0.0-alpha.20 |
| simplesamlphp | saml2-legacy | 0 |
| simplesamlphp | saml2 | 0, 5.0.0-alpha.1 |
| simplesamlphp | saml2 | 0, 5.0.0-alpha.1 |
Timeline
- Mar 11, 2025 CVE Published
- Mar 12, 2025 EPSS Score (30 in total, the first dated here)
- Mar 13, 2025 Coalition ESS Score (10 in total, the first dated here)
- May 9, 2025 CVE Updated
- Dec 18, 2025 Security Advisory
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-27773
vulnetix vdb fixes CVE-2025-27773
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-27773/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/simplesamlphp/saml2/security/advisories/GHSA-46r4-f8gj-xg56 x_refsource_CONFIRM
- https://github.com/simplesamlphp/saml2/commit/7867d6099dc7f31bed1ea10e5bea159c5623d2a0 x_refsource_MISC
- https://github.com/simplesamlphp/saml2/blob/9545abd0d9d48388f2fa00469c5c1e0294f0303e/src/SAML2/HTTPRedirect.php#L104-L113 x_refsource_MISC
- https://github.com/simplesamlphp/saml2/blob/9545abd0d9d48388f2fa00469c5c1e0294f0303e/src/SAML2/HTTPRedirect.php#L178-L217 x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2025-27773 advisory
- https://github.com/advisories/GHSA-46r4-f8gj-xg56 advisory
- https://github.com/simplesamlphp/saml2 url
- https://lists.debian.org/debian-lts-announce/2025/05/msg00013.html url