Low

onelogin/php-saml Improper signature validation on LogoutRequest/LogoutResponse.

  • Disclosed: 17.05.2024
  • Updated: 11.10.2026 10:22

In order to verify Signatures on Logoutrequests and LogoutResponses we use the verifySignature of the class XMLSecurityKey from the xmlseclibs library. That method end up calling openssl_verify() depending on the signature algorithm used.

The openssl_verify() function returns 1 when the signature was successfully verified, 0 if it failed to verify with the given key, and -1 in case an error occurs. PHP allows translating numerical values to boolean implicitly, with the following correspondences:

  • 0 equals false.
  • Non-zero equals true.

This means that an implicit conversion to boolean of the values returned by openssl_verify() will convert an error state, signaled by the value -1, to a successful verification of the signature (represented by the boolean true).

The LogoutRequest/LogoutResponse signature validator was performing an implicit conversion to boolean of the values returned by the verify() method, which subsequently will return the same output as openssl_verify() under most circumstances. This means an error during signature verification is treated as a successful verification by the method.

Since the signature validation of SAMLResponses were not affected, the impact of this security vulnerability is lower, but an update of the php-saml toolkit is recommended.

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Composer package onelogin/php-saml < 2.10.4 2.10.4

References

CVSS score -
Weakness (CWE)
-
Platform
Composer
Package
onelogin/php-saml
Disclosed
17.05.2024
Updated
11.10.2026 10:22

Sources and licenses

OSV / GitHub Advisory Database - GHSA-9wrw-p9rm-r782 - CC BY 4.0

Vulnerability history: onelogin/php-saml

All published vulnerabilities of this package (Composer package), newest first. Shows whether this is a one-off slip or a package that needs watching.

Total entries
3
First → latest
05.2024 12.2025
Without a fix
0
Exploited in attacks
0

Severity breakdown

  • Critical 1
  • Medium 1
  • Low 1

Disclosures per year

  1. 2024: 2
  2. 2025: 1
  3. 2026: 0
  1. Critical ghsa-5j8p-438x-rgg5 < 2.21.1, >= 3.0.0, < 3.8.1, >= 4.0.0, < 4.3.1 2.21.1, 3.8.1, 4.3.1
  2. Medium CVE-2016-1000253 < 2.10.0 2.10.0
  3. onelogin/php-saml Improper signature validation on LogoutRequest/LogoutResponse. this entry
    Low ghsa-9wrw-p9rm-r782 < 2.10.4 2.10.4

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.