GHSA-7WH8-JRQ7-P27F

GHSA-7WH8-JRQ7-P27F is a medium-severity security vulnerability in simplesamlphp/simplesamlphp (composer), affecting versions >= 1.16.0, < 1.16.3. It is fixed in 1.16.3.

Does this CVE actually affect you?

Kodem shows which CVEs are reachable and running in your applications, so you fix what's exploitable, not just what's listed.

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.

Runtime intelligence, not another scanner.

Summary

SimpleSAMLphp exposes credentials in session storage

Background

In order to implement support for the SAML Enhanced Client or Proxy profile, the credentials obtained for authentication were stored in the state in order to pass them to the relevant routines. This, however, led to the credentials being recorded in the user’s session, which can be stored in permanent storage such as the local file system or a remote memcache or database server.

Description

When an authentication request is received via the ECP profile, the username and password obtained this way were saved to the state array, which is used to pass relevant data to different routines that may need it. This is not a problem in itself. However, when the ECP profile is disabled in the Identity Provider, other bindings such as HTTP-POST or HTTP-Redirect will be used, and since redirections are involved, the state array is then persisted to the user’s session, effectively storing it in the session backend.

The ECP profile, which uses the SOAP and PAOS bindings, does not involve any HTTP redirection for the user, and for that reason the state array containing the credentials is never persisted to the session. The logic for determining when to save the credentials to the state array assumed wrongly, though, that if the authentication request came in on the SOAP binding, that means the ECP profile is used. This may not be true as ECP can be disabled by configuration in the IdP’s hosted SAML metadata, and in that case SimpleSAMLphp would then try to default to a binding different than PAOS, such as HTTP-POST or HTTP-Redirect, effectively consolidating the entire state array to the user’s session as described before.

In practice, any Identity Provider with the ECP profile disabled but metadata for an entity that supports ECP, would reject incoming ECP requests, but write the credentials obtained in the request to the user’s session, which will be stored in the session store, whichever is used (local file system in case PHP sessions are used, Memcache, Redis, relational databases, etc).

Affected versions

All SimpleSAMLphp versions 1.16.x are affected, up to 1.16.2.

Impact

An Identity Provider with metadata for trusted entities that support the SAML ECP profile, may end up storing the user’s credentials received from such entities in its own session storage, whatever that is, in case ECP is actually not enabled in the IdP. Under such circumstances, the credentials may be then accessible to administrators, other personnel or even malicious parties who may have access to the systems where sessions or their backups are stored.

GHSA-7WH8-JRQ7-P27F has a CVSS score of 5.3 (Medium). The vector is network-reachable, no privileges required, and no user interaction. A CVSS score reflects the worst-case severity of the vulnerability, not your specific exposure. Whether this affects your application depends on whether the vulnerable code is present and reachable in your environment. A fixed version is available (1.16.3); upgrading removes the vulnerable code path.

Affected versions

simplesamlphp/simplesamlphp (>= 1.16.0, < 1.16.3)

Security releases

simplesamlphp/simplesamlphp → 1.16.3 (composer)

Kodem intelligence

Severity tells you how bad this could be in the worst case. It does not tell you whether you are exposed. Exploitability and impact are functions of runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A vulnerable package can sit in your dependency tree and never run.

Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter. Kodem's runtime-powered SCA identifies whether this CVE is reachable in your applications.

Already deployed Kodem?

See it in your environmentNew to Kodem? Get a demo →

Remediation advice

Upgrade simplesamlphp/simplesamlphp to 1.16.3 or later to resolve this vulnerability.

Kodem Kai can prioritize this vulnerability in your dependency tree and generate a fix recommendation.

Frequently Asked Questions

  1. What is GHSA-7WH8-JRQ7-P27F? GHSA-7WH8-JRQ7-P27F is a medium-severity security vulnerability in simplesamlphp/simplesamlphp (composer), affecting versions >= 1.16.0, < 1.16.3. It is fixed in 1.16.3.
  2. How severe is GHSA-7WH8-JRQ7-P27F? GHSA-7WH8-JRQ7-P27F has a CVSS score of 5.3 (Medium). This score reflects the worst-case severity of the vulnerability, not your specific exposure. Whether it represents real risk in your environment depends on whether the vulnerable code is present and reachable.
  3. Which versions of simplesamlphp/simplesamlphp are affected by GHSA-7WH8-JRQ7-P27F? simplesamlphp/simplesamlphp (composer) versions >= 1.16.0, < 1.16.3 is affected.
  4. Is there a fix for GHSA-7WH8-JRQ7-P27F? Yes. GHSA-7WH8-JRQ7-P27F is fixed in 1.16.3. Upgrade to this version or later.
  5. Is GHSA-7WH8-JRQ7-P27F exploitable, and should I be worried? Whether GHSA-7WH8-JRQ7-P27F is exploitable in your environment depends on whether the vulnerable code is present and reachable. A CVSS score is a worst-case rating; it does not account for your specific deployment, configuration, or usage patterns. Kodem, an Intelligent Application Security platform, uses runtime intelligence to show which vulnerabilities actually execute in production, so you can focus on the ones that represent real risk. Get a demo
  6. What actually determines whether GHSA-7WH8-JRQ7-P27F is exploitable, and how bad it is? Exploitability and impact are not fixed properties of a CVE. They depend on runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A high CVSS score on a dependency that never runs is not the same as real risk. Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter.
  7. How do I fix GHSA-7WH8-JRQ7-P27F? Upgrade simplesamlphp/simplesamlphp to 1.16.3 or later.

Other vulnerabilities in simplesamlphp/simplesamlphp

Stop the waste.
Protect your environment with Kodem.