Loading...
Skip to main content

CVE-2025-23389 — Vulnerability in github.com/rancher/rancher — CVE...

HIGH

Rancher does not Properly Validate Account Bindings in SAML Authentication Enables User Impersonation on First Login

Published February 27, 2025Updated September 10, 2026Source: osv

Summary

### Impact A vulnerability in Rancher has been discovered, leading to a local user impersonation through SAML Authentication on first login. The issue occurs when a SAML authentication provider (AP) is configured (e.g. Keycloak). A newly created AP user can impersonate any user on Rancher by manipulating cookie values during their initial login to Rancher. This vulnerability could also be exploited if a Rancher user (present on the AP) is removed, either manually or automatically via the [User Retention feature](https://ranchermanager.docs.rancher.com/how-to-guides/advanced-user-guides/enable-user-retention) with delete-inactive-user-after. More precisely, Rancher validates only a subset of input from the SAML assertion request; however, it trusts and uses values that are not properly validated. An attacker could then configure the saml_Rancher_UserID cookie and the saml_Rancher_Action cookie so that the user principal from the AP will be added to the user specified by the attacker (from saml_Rancher_UserID). Rancher can then be deceived by setting saml_Rancher_UserID to the admin's user ID and saml_Rancher_Action to testAndEnable, thereby executing the vulnerable code path and leading to privilege escalation. Note that the vulnerability impacts all SAML APs available in Rancher. However the following Rancher deployments are not affected: 1. Rancher deployments not using SAML-based AP. 2. Rancher deployments using SAML-based AP, where all SAML users are already signed in and linked to a Rancher account. Please consult the associated [MITRE ATT&CK - Technique - Access Token Manipulation: Token Impersonation/Theft](https://attack.mitre.org/techniques/T1134/001/) for further information about this category of attack. ### Patches This vulnerability is addressed by adding the UserID claim to a JWT signed token, which is protected against tampering. Patched versions include releases `v2.8.13`, `v2.9.7` and `v2.10.3`. ### Workarounds Rancher deployments that can't upgrade, could temporarily disable the SAML-based AP as a temporary workaround. However, upgrading is recommended. ### 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/).

Advisory Timeline

  • First published February 27, 2025 (592 days ago).
  • Last revised September 10, 2026 — 559 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Go
Update github.com/rancher/rancher to 2.8.13 or later
go get github.com/rancher/rancher@v2.8.13
Go
Update github.com/rancher/rancher to 2.9.7 or later
go get github.com/rancher/rancher@v2.9.7
Go
Update github.com/rancher/rancher to 2.10.3 or later
go get github.com/rancher/rancher@v2.10.3

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (3)

Affects 1 ecosystem: Go (1).

PackageEcosystemAffectedFixed In
github.com/rancher/rancher
Go
All versions2.8.13
github.com/rancher/rancher
Go
All versions2.9.7
github.com/rancher/rancher
Go
All versions2.10.3

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 8.4 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
High
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
Low

CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:L

Frequently Asked Questions

What is CVE-2025-23389?
Rancher does not Properly Validate Account Bindings in SAML Authentication Enables User Impersonation on First Login This vulnerability has been assigned a severity rating of HIGH (CVSS score: 8.4/10).
How do I check if my project is affected by CVE-2025-23389?
CVE-2025-23389 affects github.com/rancher/rancher. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2025-23389 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
8.4

High exploitability or significant impact. Prioritize remediation within days.

Also Known As

GHSA-mq23-vvg7-xfm4
GO-2025-3490

Related CVEs

  • CVE-2022-31247
    CRITICAL

    Rancher has downstream cluster privilege escalation through cluster and project role template binding (CRTB/PRTB)

  • CVE-2023-32196
    CRITICAL

    Rancher allows privilege escalation in Windows nodes due to Insecure Access Control Lists

  • CVE-2025-23391
    CRITICAL

    Rancher: Restricted Administrator can change Administrator's passwords

  • CVE-2021-36783
    CRITICAL

    Rancher doesn't properly sanitize credentials in cluster template answers

  • CVE-2021-36782
    CRITICAL

    Rancher API and cluster.management.cattle.io object vulnerable to plaintext storage and exposure of credentials

  • CVE-2021-25320
    CRITICAL

    Rancher cloud credentials can be used through proxy API by users without access

  • CVE-2024-22031
    HIGH

    Rancher users who can create Projects can gain access to arbitrary projects

  • CVE-2023-22650
    HIGH

    Rancher does not automatically clean up a user deleted or disabled from the configured Authentication Provider

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies