Vulnerability · Published Mar 11, 2025 · Assigned by GitHub_M
CVE-2025-27773SimpleSAMLphp SAML2 library has incorrect signature verification for HTTP-Redirect binding
High 8.6
In plain English
A high-severity security flaw in saml2 from simplesamlphp. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 36% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | simplesamlphp | 1.19.7-1+deb12u2 | DEBIAN-CVE-2025-27773 |
| Debian:14 | simplesamlphp | 1.19.7-2 | DEBIAN-CVE-2025-27773 |
| Packagist | simplesamlphp/saml2 | 4.17.0 | GHSA-46r4-f8gj-xg56 |
| Packagist | simplesamlphp/saml2 | 5.0.0-alpha.20 | GHSA-46r4-f8gj-xg56 |
| Packagist | simplesamlphp/saml2-legacy | 4.17.0 | GHSA-46r4-f8gj-xg56 |
| Ubuntu:24.04:LTS | simplesamlphp | 1.19.7-1+deb12u1ubuntu0.1 | USN-8770-1 |
| Ubuntu:24.04:LTS | simplesamlphp | 1.19.7-1+deb12u1ubuntu0.1 | UBUNTU-CVE-2025-27773 |
| Ubuntu:25.10 | simplesamlphp | no fix listed | UBUNTU-CVE-2025-27773 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| simplesamlphp | saml2 | < 4.17.0>= 5.0.0-alpha.1, < 5.0.0-alpha.20 |
Weakness: CWE-347 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N
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://lists.debian.org/debian-lts-announce/2025/05/msg00013.html