CVE-2025-65954
JSON

4.7medium

SimpleSAMLphp-casserver has an Open Redirect vulnerability via logout

Severity
4.7medium CVSS:3.0 by GitHub_M
Exploit likelihood
0.27% (higher than 20% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-cvrm-5hp6-h523

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' => true, and 'skip_logout_page' -> true. This issue has been resolved in versions 6.3.1 and 7.0.0.

Affected

Product or packageVersionsReported by
simplesamlphp simplesamlphp-module-casserver< 6.3.1, >= 7.0.0-rc1, < 7.0.0, before 6.3.1, 7.0.0CVE List, NVD
simplesamlphp/simplesamlphp-module-casserver (Packagist)from 7.0.0-rc1 before 7.0.0, before 6.3.1GitHub Advisory Database

All scores

GitHub_M4.7medium CVSS:3.0CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N
GitHub4.7medium CVSS:3.0CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N
NVD6.1medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Classification

CWE-601

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.

What each source says

CVE List

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.

GitHub Advisory Database
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

'enable_logout' => true,

and are most impacted if they also have

'skip_logout_page' -> true,
NVD (es)

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.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-65954 changed 2026-05-18CVE Terms of Use
GitHub Advisory DatabaseGHSA-cvrm-5hp6-h523 changed 2026-09-10CC-BY-4.0
NVDCVE-2025-65954 changed 2026-10-07Public domain