GHSA-5qmp-9x47-92q8
Rancher's SAML-based login via CLI can be denied by unauthenticated users
At a glance
- Published
- Updated
- CVE
- CVE-2025-23387
- Aliases
- GO-2025-3489
- CVSS_V3
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Description
### Impact A vulnerability has been identified within Rancher where it is possible for an unauthenticated user to list all CLI authentication tokens and delete them before the CLI is able to get the token value. This effectively prevents users from logging in via the CLI when using rancher token as the execution command (instead of the token directly being in the kubeconfig). Note that this token is not the kubeconfig token and if an attacker is able to intercept it they can't use it to impersonate a real user since it is encrypted. This happens because for SAML-based authentication providers, the login flow from the CLI works by generating a link to be pasted in the browser, and then polling every 10 seconds for the `/v3-public/authTokens/<token name>` endpoint. The `<token name>` is randomly generated by the CLI. Once the login flow succeeds, Rancher creates an auth token (with an encrypted token value). The CLI then deletes the authToken. Rancher deployments using only the local authentication provider, or non-SAML-based authentication providers, are not impacted by this vulnerability. SAML-based users not using the CLI are also not impacted. Please consult the associated [MITRE ATT&CK - Technique - Account Access Removal](https://attack.mitre.org/techniques/T1531/) for further information about this category of attack. ### Patches The fix involves removing GET and DELETE methods for the authTokens collection. Patched versions include releases `v2.8.13`, `v2.9.7` and `v2.10.3`. ### Workarounds Users can refrain from using the Rancher CLI to log in as a workaround. Otherwise, users are advised to upgrade to a patched version of Rancher Manager. ### References If you have any questions or comments about this advisory: - Reach out to the [SUSE Rancher Security team](https://github.com/rancher/rancher/security/policy) for security related inquiries. - Open an issue in the [Rancher](https://github.com/rancher/rancher/issues/new/choose) repository. - Verify with our [support matrix](https://www.suse.com/suse-rancher/support-matrix/all-supported-versions/) and [product support lifecycle](https://www.suse.com/lifecycle/).
Affected packages
| Package | Versions |
|---|---|
| Go · github.com/rancher/rancher | introduced 2.8.0, fixed 2.8.13 |
| Go · github.com/rancher/rancher | introduced 2.9.0, fixed 2.9.7 |
| Go · github.com/rancher/rancher | introduced 2.10.0, fixed 2.10.3 |
References
- https://github.com/rancher/rancher/security/advisories/GHSA-5qmp-9x47-92q8 WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-23387 ADVISORY
- https://github.com/rancher/rancher/pull/48616 WEB
- https://github.com/rancher/rancher/pull/48998 WEB
- https://github.com/rancher/rancher/pull/48999 WEB
- https://github.com/rancher/rancher/pull/49000 WEB
- https://github.com/rancher/rancher/commit/2481630c4a5a75d81eb69d10d7558ea833395a1e WEB
- https://github.com/rancher/rancher/commit/bedd911b9b321436faa2d9e20a161f6ac396aa74 WEB
- https://github.com/rancher/rancher/commit/ceeedb1aa67c319f4873615f19c3f56a66f39706 WEB
- https://github.com/rancher/rancher/commit/dfa034d05a55b5e57990a1f700176dcd8e963dbc WEB
- https://bugzilla.suse.com/show_bug.cgi?id=CVE-2025-23387 WEB
- https://github.com/rancher/rancher PACKAGE
- https://github.com/rancher/rancher/releases/tag/v2.10.3 WEB
- https://github.com/rancher/rancher/releases/tag/v2.8.13 WEB
- https://github.com/rancher/rancher/releases/tag/v2.9.7 WEB
Sources
| Source | Licence |
|---|---|
| OSV.dev | CC-BY 4.0 — GitHub Advisory Database |