CVE-2025-65954: SimpleSAMLphp casserver Open Redirect Vulnerability

MODERATE
Advisory Identifier: GHSA-cvrm-5hp6-h523
CVSS 4.7
CWE-601
Published
Advisory Summary

CVE-2025-65954 is a MODERATE (CVSS 4.7) open redirect vulnerability (CWE-601: URL Redirection to Untrusted Site ('Open Redirect')) affecting SimpleSAMLphp casserver libraries in the Packagist ecosystem. The issue involves open redirect in logout. Remediation is available by upgrading affected packages to version 7.0.0, 6.3.1.

CVE-2025-65954 at a Glance

CVE Identifier CVE-2025-65954
GHSA Identifier GHSA-cvrm-5hp6-h523
Severity MODERATE
CVSS v3.1 Base Score 4.7
CWE Classification CWE-601: URL Redirection to Untrusted Site ('Open Redirect')
Affected Product SimpleSAMLphp casserver
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 4.7

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Changed (S:C)
Confidentiality None (C:N)
Integrity Low (I:L)
Availability None (A:N)

How to Fix CVE-2025-65954

To remediate this vulnerability, upgrade all affected SimpleSAMLphp casserver dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

simplesamlphp/simplesamlphp-module-casserver fixed: 7.0.0
Upgrade simplesamlphp/simplesamlphp-module-casserver to 7.0.0
simplesamlphp/simplesamlphp-module-casserver fixed: 6.3.1
Upgrade simplesamlphp/simplesamlphp-module-casserver to 6.3.1
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for simplesamlphp/simplesamlphp-module-casserver

How to Check if You Are Affected

To determine whether your application is affected by CVE-2025-65954, inspect your project dependencies for SimpleSAMLphp casserver:

inspect dependencies for simplesamlphp/simplesamlphp-module-casserver

Analyze the terminal output to locate any version of SimpleSAMLphp casserver in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 7.0.0), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-601: URL Redirection to Untrusted Site ('Open Redirect'), where the web application accepts a user-controlled input that specifies a link to an external site, and uses that link in a redirect. In SimpleSAMLphp casserver, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Summary The logout endpoint accepts a `url` query parameter to redirect to. casserver treats that url as trusted, and either (depending on configuration) redirects the browser there, or shows a "you've been logged out" page with a link to continue to that url. There are a number of other things broken with logout in 7 (cas v3 uses a different query parameters, etc) ### Details https://github.com/simplesamlphp/simplesamlphp-module-casserver/blob/21418f7efbea8c4f078fd4a7d1b9eacf94dd4941/src/Controller/LogoutController.php#L104 Previous module checked the url against the valid service urls. ### PoC The docker instructions from the README.md run an image with a vulnerable config. Accessing https://localhost/cas/logout?url=https://google.com will redirect to Google ### Impact Impacted configs have ```php 'enable_logout' => true, ``` and are most impacted if they also have ``` 'skip_logout_page' -> true, ```

CVE-2025-65954 Affected SimpleSAMLphp casserver Versions

2 component(s)
Fixed Versions:
7.0.06.3.1
Product / Package Ecosystem Affected Versions Fixed Version
simplesamlphp/simplesamlphp-module-casserver
Packagist
≥ 7.0.0-rc1
< 7.0.0
7.0.0
simplesamlphp/simplesamlphp-module-casserver
Packagist
< 6.3.1
6.3.1

References

Frequently Asked Questions

What is CVE-2025-65954?
CVE-2025-65954 is a security vulnerability in SimpleSAMLphp casserver involving Open Redirect in logout under CWE-601: URL Redirection to Untrusted Site ('Open Redirect').
Which SimpleSAMLphp casserver versions are affected?
Affected versions include releases prior to 7.0.0, 6.3.1 across affected packages: simplesamlphp/simplesamlphp-module-casserver.
What version fixes CVE-2025-65954?
Upgrading to 7.0.0, 6.3.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is simplesamlphp/simplesamlphp-module-casserver affected?
Yes, simplesamlphp/simplesamlphp-module-casserver is affected in releases prior to 7.0.0, 6.3.1. Upgrade your dependency to 7.0.0, 6.3.1 or later.
What is the CVSS score of CVE-2025-65954?
CVE-2025-65954 has a CVSS v3.1 base score of 4.7 (MODERATE) with vector string CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N.
What CWE is associated with CVE-2025-65954?
CVE-2025-65954 is classified under CWE-601: URL Redirection to Untrusted Site ('Open Redirect') (The web application accepts a user-controlled input that specifies a link to an external site, and uses that link in a redirect.).
How can I check Packagist dependencies for CVE-2025-65954?
Run the dependency tree command: 'inspect dependencies for simplesamlphp/simplesamlphp-module-casserver'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-cvrm-5hp6-h523",
  "modified" : "2026-05-19T16:08:50Z",
  "published" : "2026-05-15T16:21:13Z",
  "aliases" : [ "CVE-2025-65954" ],
  "summary" : "SimpleSAMLphp casserver: Open Redirect in logout",
  "details" : "### Summary\n\nThe logout endpoint accepts a `url` query parameter to redirect to.  casserver treats that url as trusted, and either (depending on configuration) redirects the browser there, or shows a \"you've been logged out\" page with a link to continue to that url.\n\nThere are a number of other things broken with logout in 7 (cas v3 uses a different query parameters, etc)\n\n### Details\n\nhttps://github.com/simplesamlphp/simplesamlphp-module-casserver/blob/21418f7efbea8c4f078fd4a7d1b9eacf94dd4941/src/Controller/LogoutController.php#L104\n\nPrevious module checked the url against the valid service urls.\n\n### PoC\n\nThe docker instructions from the README.md run an image with a vulnerable config. \n\nAccessing  https://localhost/cas/logout?url=https://google.com  will redirect to Google\n\n### Impact\n\nImpacted configs have\n\n```php\n'enable_logout' => true,\n```\n\nand are most impacted if they also have\n\n```\n'skip_logout_page' -> true,\n```",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "simplesamlphp/simplesamlphp-module-casserver"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "7.0.0-rc1"
      }, {
        "fixed" : "7.0.0"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "< 7.0.0-rc3"
    }
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "simplesamlphp/simplesamlphp-module-casserver"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "6.3.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/simplesamlphp/simplesamlphp-module-casserver/security/advisories/GHSA-cvrm-5hp6-h523"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-65954"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/simplesamlphp/simplesamlphp-module-casserver/commit/0462f50f00b3bb300d83067d11b74146a57bb8e0"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/simplesamlphp/simplesamlphp-module-casserver/commit/fb6c6f1c7b9e757c93c5c306e1d36405e64f6dc5"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/simplesamlphp/simplesamlphp-module-casserver"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/simplesamlphp/simplesamlphp-module-casserver/blob/21418f7efbea8c4f078fd4a7d1b9eacf94dd4941/src/Controller/LogoutController.php#L104"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-601" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-05-15T16:21:13Z",
    "nvd_published_at" : "2026-05-18T20:16:36Z"
  }
}