🛡️ GHSA-9wrw-p9rm-r782 — php-saml

🟢 CVSS 2.0 — Low ✅ No Known Exploit OSV
2.0
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

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

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

GHSA-9wrw-p9rm-r782 is recorded against 1 package.

  • onelogin/php-saml (fixed in 2.10.4)

Timeline and source

Published on 17 May 2024 and last revised on 2 December 2024. No public exploit is currently recorded for this entry. Record sourced from OSV.

References

github.com (Web)
github.com (Web)
github.com (Package)

Details

Severity LOW
CVSS Score 2.0
CVSS Vector N/A
CWE N/A
Public Exploit ✅ No
Source OSV
Published 2024-05-17
Updated 2026-08-20
Modified 2024-12-02
Fix URL N/A

Affected Packages

Software From version Fixed in
onelogin/php-saml 2.10.4

Similar Threats

Free Vulnerability Check

Is your site affected by GHSA-9wrw-p9rm-r782?

BotEraser helps you identify potentially vulnerable plugins and themes by checking your installation against GHSA-9wrw-p9rm-r782 and other known CVE records.

Scan My Site Free →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.

Browse related advisories

All advisoriesGitHub AdvisoryGitHub Advisory Undated