Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. simplesamlphp/saml2
  4. ›
  5. CVE-2025-27773

CVE-2025-27773: The SimpleSAMLphp SAML2 library incorrectly verifies signatures for HTTP-Redirect binding

March 11, 2025 (updated May 9, 2025)

There’s 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.

I believe that it exists for v4 only. I have not yet developed a PoC.

V5 is well designed and instead builds the signed query from the same message that will be consumed.

References

  • github.com/advisories/GHSA-46r4-f8gj-xg56
  • github.com/simplesamlphp/saml2
  • github.com/simplesamlphp/saml2/blob/9545abd0d9d48388f2fa00469c5c1e0294f0303e/src/SAML2/HTTPRedirect.php
  • github.com/simplesamlphp/saml2/blob/9545abd0d9d48388f2fa00469c5c1e0294f0303e/src/SAML2/HTTPRedirect.php
  • github.com/simplesamlphp/saml2/commit/7867d6099dc7f31bed1ea10e5bea159c5623d2a0
  • github.com/simplesamlphp/saml2/security/advisories/GHSA-46r4-f8gj-xg56
  • lists.debian.org/debian-lts-announce/2025/05/msg00013.html
  • nvd.nist.gov/vuln/detail/CVE-2025-27773

Code Behaviors & Features

Detect and mitigate CVE-2025-27773 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 4.17.0, all versions starting from 5.0.0-alpha.1 before 5.0.0-alpha.20

Fixed versions

  • 4.17.0
  • 5.0.0-alpha.20

Solution

Upgrade to versions 4.17.0, 5.0.0-alpha.20 or above.

Impact 8.6 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-347: Improper Verification of Cryptographic Signature

Source file

packagist/simplesamlphp/saml2/CVE-2025-27773.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:48 +0000.