{"id":"GHSA-cvrm-5hp6-h523","aliases":["CVE-2025-65954"],"title":"SimpleSAMLphp casserver: Open Redirect in logout","titleSource":"OSV","descriptionSource":"OSV","declaredSeverity":"MODERATE","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' => true,\n```\n\nand are most impacted if they also have\n\n```\n'skip_logout_page' -> true,\n```","severity":"medium","score":4.7,"published":"2026-05-15T16:21:13.000Z","modified":"2026-09-10T03:51:05.293Z","withdrawn":false,"knownExploited":false,"affected":[{"ecosystem":"Packagist","name":"simplesamlphp/simplesamlphp-module-casserver","sources":[{"name":"OSV · GHSA-cvrm-5hp6-h523","url":"https://osv.dev/vulnerability/GHSA-cvrm-5hp6-h523"}],"ranges":[{"events":[{"introduced":"7.0.0-rc1"},{"fixed":"7.0.0"}],"type":"ECOSYSTEM"}],"versions":["v7.0.0-rc1","v7.0.0-rc2","v7.0.0-rc3"],"fixed":["7.0.0"]},{"ecosystem":"Packagist","name":"simplesamlphp/simplesamlphp-module-casserver","sources":[{"name":"OSV · GHSA-cvrm-5hp6-h523","url":"https://osv.dev/vulnerability/GHSA-cvrm-5hp6-h523"}],"ranges":[{"events":[{"introduced":"0"},{"fixed":"6.3.1"}],"type":"ECOSYSTEM"}],"versions":["v6.0.0","v6.1.0","v6.1.1","v6.1.2","v6.2.0","v6.2.1","v6.3.0"],"fixed":["6.3.1"]}],"sourceAffected":[],"references":["https://github.com/simplesamlphp/simplesamlphp-module-casserver/security/advisories/GHSA-cvrm-5hp6-h523","https://nvd.nist.gov/vuln/detail/CVE-2025-65954","https://github.com/simplesamlphp/simplesamlphp-module-casserver/commit/0462f50f00b3bb300d83067d11b74146a57bb8e0","https://github.com/simplesamlphp/simplesamlphp-module-casserver/commit/fb6c6f1c7b9e757c93c5c306e1d36405e64f6dc5","https://github.com/simplesamlphp/simplesamlphp-module-casserver","https://github.com/simplesamlphp/simplesamlphp-module-casserver/blob/21418f7efbea8c4f078fd4a7d1b9eacf94dd4941/src/Controller/LogoutController.php#L104"],"sources":[{"name":"OSV","id":"GHSA-cvrm-5hp6-h523","modified":"2026-09-10T03:51:05.293699994Z","url":"https://osv.dev/vulnerability/GHSA-cvrm-5hp6-h523"}],"assessments":[{"source":"OSV","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N","score":4.7}],"products":[],"remediation":[],"kev":{"status":"not-listed","checkedAt":"2026-10-28T21:10:33.929Z"},"coverage":[{"source":"NVD","status":"not-checked"},{"source":"GHSA","status":"not-checked"},{"source":"EUVD","status":"not-checked"},{"source":"EPSS","status":"not-checked"}],"evidence":[]}