Skip to main content

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

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

What Should I Do?

Address in Next Maintenance Window

Low exploitation probability (0.58%). Schedule for your next planned update.

Does your project use an affected github.com/rancher/rancher version?

Paste your go.sum to check it for CVE-2025-23389 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.

Check my go.sum

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 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 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:

Advisory Timeline

  • First published February 27, 2025 (637 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, scan your dependencies again to confirm the vulnerability is resolved.

Affected Packages (3)

Affects 1 ecosystem: Go (1).

PackageFixed In
github.com/rancher/rancher Go · Affected: All versions2.8.13
github.com/rancher/rancher Go · Affected: All versions2.9.7
github.com/rancher/rancher Go · Affected: 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. It has a 0.6% probability of exploitation within 30 days (EPSS score). 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

Significant impact if exploited, or exploitable with modest effort.

EPSS Score (30-day exploit probability)
0.58%
EPSS percentile: 41.3

This is a below-median EPSS score — only 41.3% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.

Also Known As

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

Related CVEs

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my go.sum