{"id":"CVE-2025-65954","aliases":["CVE-2025-65954","GHSA-cvrm-5hp6-h523"],"related":[],"kind":"vulnerability","state":"published","title":"SimpleSAMLphp-casserver  has an Open Redirect vulnerability via logout","summary":"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' => true, and 'skip_logout_page' -> true. This issue has been resolved in versions 6.3.1 and 7.0.0.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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' => true, and 'skip_logout_page' -> true. This issue has been resolved in versions 6.3.1 and 7.0.0.","source":"cvelist"},{"lang":"en","text":"### 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```","format":"markdown","source":"ghsa"},{"lang":"es","text":"SimpleSAMLphp-casserver es un servidor CAS compatible con CAS 1.0 y 2.0 en forma de un módulo SimpleSAMLphp. En versiones anteriores a la 6.3.1 y 7.0.0, el endpoint de cierre de sesión acepta un parámetro de consulta url para redirigir. casserver trata esa url como de confianza, y (dependiendo de la configuración) o bien redirige el navegador allí, o muestra una página de 'has cerrado sesión' con un enlace para continuar a esa url. Las configuraciones afectadas incluyen enable_logout => true, y skip_logout_page    ->    true. Este problema ha sido resuelto en las versiones 6.3.1 y 7.0.0.","source":"nvd"}],"published":"2026-05-15T16:21:13.000Z","modified":"2026-10-07T08:10:00.200Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N","score":4.7,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N","score":4.7,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N","score":4.7,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"}],"cwes":["CWE-601"],"affected":[{"ranges":[{"version":"< 6.3.1","status":"affected"},{"version":">= 7.0.0-rc1,  < 7.0.0","status":"affected"}],"vendor":"simplesamlphp","product":"simplesamlphp-module-casserver","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"7.0.0-rc1","status":"affected","fixed":"7.0.0"}],"ecosystem":"Packagist","package":"simplesamlphp/simplesamlphp-module-casserver","purl":"pkg:composer/simplesamlphp/simplesamlphp-module-casserver","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"6.3.1"}],"ecosystem":"Packagist","package":"simplesamlphp/simplesamlphp-module-casserver","purl":"pkg:composer/simplesamlphp/simplesamlphp-module-casserver","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"6.3.1"},{"status":"affected","version":"7.0.0"},{"status":"affected","version":"7.0.0"}],"vendor":"simplesamlphp","product":"simplesamlphp-module-casserver","cpe":"cpe:2.3:a:simplesamlphp:simplesamlphp-module-casserver:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/simplesamlphp/simplesamlphp-module-casserver/security/advisories/GHSA-cvrm-5hp6-h523","tags":["exploit","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/simplesamlphp/simplesamlphp-module-casserver/commit/0462f50f00b3bb300d83067d11b74146a57bb8e0","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/simplesamlphp/simplesamlphp-module-casserver/commit/fb6c6f1c7b9e757c93c5c306e1d36405e64f6dc5","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-65954","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/simplesamlphp/simplesamlphp-module-casserver","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/simplesamlphp/simplesamlphp-module-casserver/blob/21418f7efbea8c4f078fd4a7d1b9eacf94dd4941/src/Controller/LogoutController.php#L104","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2026-05-18T20:27:41.760Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-65954","url":"https://www.cve.org/CVERecord?id=CVE-2025-65954","licence":"CVE Terms of Use","modified":"2026-05-18T20:28:06.383Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-cvrm-5hp6-h523","url":"https://github.com/advisories/GHSA-cvrm-5hp6-h523","licence":"CC-BY-4.0","modified":"2026-09-10T03:51:05.293Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-65954","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-65954","licence":"Public domain","modified":"2026-10-07T08:10:00.200Z"}],"updatedAt":"2026-11-25T22:59:12.203Z","epss":{"score":0.00269,"percentile":0.20374,"date":"2026-12-01T12:00:22.000Z"}}