{"id":"CVE-2025-65954","aliases":["EUVD-2025-209889","GHSA-cvrm-5hp6-h523"],"status":"published","title":"SimpleSAMLphp-casserver  has an Open Redirect vulnerability via logout","description":"SimpleSAMLphp-casserver is a CAS 1.0 and 2.0 compliant CAS server in the form of a SimpleSAMLphp module. In versions below 6.3.1 and 7.0.0, 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. Impacted configs include 'enable_logout' =\u003e true, and 'skip_logout_page' -\u003e true. This issue has been resolved in versions 6.3.1 and 7.0.0.","severity":{"version":"3.0","score":4.7,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N","level":"medium","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-12","score":0.00269,"percentile":0.19265,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-601"],"published":"2026-05-15T16:21:13Z","modified":"2026-10-28T02:31:14Z","fixes":[{"ecosystem":"Packagist","package":"simplesamlphp/simplesamlphp-module-casserver","fixed_in":["7.0.0-rc3","6.3.1","7.0.0"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"Packagist","package":"simplesamlphp/simplesamlphp-module-casserver","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"7.0.0-rc1"},{"fixed":"7.0.0-rc3"}]}]},{"source":"ghsa","ecosystem":"Packagist","package":"simplesamlphp/simplesamlphp-module-casserver","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.3.1"}]}]},{"source":"osv","ecosystem":"Packagist","package":"simplesamlphp/simplesamlphp-module-casserver","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"7.0.0-rc1"},{"fixed":"7.0.0"}]}],"versions":["v7.0.0-rc1","v7.0.0-rc2","v7.0.0-rc3"]},{"source":"osv","ecosystem":"Packagist","package":"simplesamlphp/simplesamlphp-module-casserver","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.3.1"}]}],"versions":["v6.0.0","v6.1.0","v6.1.1","v6.1.2","v6.2.0","v6.2.1","v6.3.0"]}],"products":[{"vendor":"simplesamlphp","product":"simplesamlphp-module-casserver"}],"references":[{"url":"https://github.com/simplesamlphp/simplesamlphp-module-casserver/security/advisories/GHSA-cvrm-5hp6-h523","tags":["x_refsource_CONFIRM","exploit","Exploit","Vendor Advisory","advisory","web"]},{"url":"https://github.com/simplesamlphp/simplesamlphp-module-casserver/commit/0462f50f00b3bb300d83067d11b74146a57bb8e0","tags":["x_refsource_MISC","Patch","fix","web"]},{"url":"https://github.com/simplesamlphp/simplesamlphp-module-casserver/commit/fb6c6f1c7b9e757c93c5c306e1d36405e64f6dc5","tags":["x_refsource_MISC","Patch","fix","web"]},{"url":"https://github.com/simplesamlphp/simplesamlphp-module-casserver/blob/21418f7efbea8c4f078fd4a7d1b9eacf94dd4941/src/Controller/LogoutController.php#L104","tags":["web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-65954","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-cvrm-5hp6-h523"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/65xxx/CVE-2025-65954.json","tags":["advisory"]},{"url":"https://github.com/simplesamlphp/simplesamlphp-module-casserver","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2025-65954","title":"SimpleSAMLphp-casserver  has an Open Redirect vulnerability via logout","description":"SimpleSAMLphp-casserver is a CAS 1.0 and 2.0 compliant CAS server in the form of a SimpleSAMLphp module. In versions below 6.3.1 and 7.0.0, 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. Impacted configs include 'enable_logout' =\u003e true, and 'skip_logout_page' -\u003e true. This issue has been resolved in versions 6.3.1 and 7.0.0.","status":"published","published":"2026-05-18T19:57:07.228Z","modified":"2026-05-18T20:28:06.383Z","cvss":[{"version":"3.0","score":4.7,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N","level":"medium","assessor":"cna"}],"cwes":["CWE-601"],"updated_at":"2026-11-02T14:32:26.64278Z"}],"euvd":[{"id":"EUVD-2025-209889","description":"SimpleSAMLphp-casserver is a CAS 1.0 and 2.0 compliant CAS server in the form of a SimpleSAMLphp module. In versions below 6.3.1 and 7.0.0, 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. Impacted configs include 'enable_logout' =\u003e true, and 'skip_logout_page' -\u003e true. This issue has been resolved in versions 6.3.1 and 7.0.0.","status":"published","published":"2026-05-18T19:57:07Z","modified":"2026-05-18T20:28:06Z","cvss":[{"version":"3.0","score":4.7,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N","level":"medium"}],"updated_at":"2026-11-02T18:21:15.688012Z"}],"ghsa":[{"id":"GHSA-cvrm-5hp6-h523","title":"SimpleSAMLphp casserver: Open Redirect in logout","description":"### 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' =\u003e true,\n```\n\nand are most impacted if they also have\n\n```\n'skip_logout_page' -\u003e true,\n```","status":"published","published":"2026-05-15T16:21:13Z","modified":"2026-05-19T16:08:51Z","cvss":[{"version":"3.0","score":4.7,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N","level":"medium"}],"cwes":["CWE-601"],"updated_at":"2026-11-02T14:40:12.430932Z"}],"nvd":[{"id":"CVE-2025-65954","description":"SimpleSAMLphp-casserver is a CAS 1.0 and 2.0 compliant CAS server in the form of a SimpleSAMLphp module. In versions below 6.3.1 and 7.0.0, 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. Impacted configs include 'enable_logout' =\u003e true, and 'skip_logout_page' -\u003e true. This issue has been resolved in versions 6.3.1 and 7.0.0.","status":"published","published":"2026-05-18T20:16:36.98Z","modified":"2026-10-07T08:10:00.2Z","cvss":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium","assessor":"primary"},{"version":"3.0","score":4.7,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N","level":"medium","assessor":"secondary"}],"cwes":["CWE-601"],"updated_at":"2026-11-02T14:12:02.090779Z"}],"osv":[{"id":"CVE-2025-65954","title":"SimpleSAMLphp-casserver  has an Open Redirect vulnerability via logout","description":"SimpleSAMLphp-casserver is a CAS 1.0 and 2.0 compliant CAS server in the form of a SimpleSAMLphp module. In versions below 6.3.1 and 7.0.0, 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. Impacted configs include 'enable_logout' =\u003e true, and 'skip_logout_page' -\u003e true. This issue has been resolved in versions 6.3.1 and 7.0.0.","status":"published","published":"2026-05-18T19:57:07.228Z","modified":"2026-10-28T02:31:14.97414666Z","cvss":[{"version":"3.0","score":4.7,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N","level":"medium"}],"cwes":["CWE-601"],"updated_at":"2026-11-02T15:44:52.202386Z"},{"id":"GHSA-cvrm-5hp6-h523","title":"SimpleSAMLphp casserver: Open Redirect in logout","description":"### 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' =\u003e true,\n```\n\nand are most impacted if they also have\n\n```\n'skip_logout_page' -\u003e true,\n```","status":"published","published":"2026-05-15T16:21:13Z","modified":"2026-09-10T03:51:05.293699994Z","cvss":[{"version":"3.0","score":4.7,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N","level":"medium"}],"cwes":["CWE-601"],"updated_at":"2026-11-02T15:46:45.639885Z"}]}}
