CVE-2025-23389: Github.com/rancher/rancher Rancher Does Not Properly Validate Vulnerability
HIGHCVE-2025-23389 is a HIGH (CVSS 8.4) rancher does not properly validate vulnerability (CWE-284: Improper Access Control) affecting Github.com/rancher/rancher libraries in the Go ecosystem. The issue involves rancher does not properly validate account bindings in saml authentication enables user impersonation on first login. Remediation is available by upgrading affected packages to version 2.8.13, 2.9.7, 2.10.3.
CVE-2025-23389 at a Glance
Security Impact
CVSS: 8.4
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:L).
How to Fix CVE-2025-23389
To remediate this vulnerability, upgrade all affected Github.com/rancher/rancher dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade github.com/rancher/rancher to 2.8.13
Upgrade github.com/rancher/rancher to 2.9.7
Upgrade github.com/rancher/rancher to 2.10.3
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/rancher/rancher
How to Check if You Are Affected
To determine whether your application is affected by CVE-2025-23389, inspect your project dependencies for Github.com/rancher/rancher:
inspect dependencies for github.com/rancher/rancher
Analyze the terminal output to locate any version of Github.com/rancher/rancher in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.8.13), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-284: Improper Access Control, where the product does not restrict or incorrectly restricts access to a resource from an unauthorized actor. In Github.com/rancher/rancher, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-23389 Affected Github.com/rancher/rancher Versions
3 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/rancher/rancher
|
Go |
≥ 2.8.0
< 2.8.13
|
2.8.13
|
|
github.com/rancher/rancher
|
Go |
≥ 2.9.0
< 2.9.7
|
2.9.7
|
|
github.com/rancher/rancher
|
Go |
≥ 2.10.0
< 2.10.3
|
2.10.3
|
References
Frequently Asked Questions
What is CVE-2025-23389?
Which Github.com/rancher/rancher versions are affected?
What version fixes CVE-2025-23389?
Is github.com/rancher/rancher affected?
What is the CVSS score of CVE-2025-23389?
What CWE is associated with CVE-2025-23389?
How can I check Go dependencies for CVE-2025-23389?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-mq23-vvg7-xfm4",
"modified" : "2025-05-27T17:54:40Z",
"published" : "2025-02-27T18:27:56Z",
"aliases" : [ "CVE-2025-23389" ],
"summary" : "Rancher does not Properly Validate Account Bindings in SAML Authentication Enables User Impersonation on First Login",
"details" : "### Impact\nA vulnerability in Rancher has been discovered, leading to a local user impersonation through SAML Authentication on first login.\n\nThe 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.\n\nMore 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.\n\nNote that the vulnerability impacts all SAML APs available in Rancher. However the following Rancher deployments are not affected:\n1. Rancher deployments not using SAML-based AP.\n2. Rancher deployments using SAML-based AP, where all SAML users are already signed in and linked to a Rancher account.\n\nPlease 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.\n\n### Patches\nThis vulnerability is addressed by adding the UserID claim to a JWT signed token, which is protected against tampering. \n\nPatched versions include releases `v2.8.13`, `v2.9.7` and `v2.10.3`.\n\n### Workarounds\nRancher deployments that can't upgrade, could temporarily disable the SAML-based AP as a temporary workaround. However, upgrading is recommended.\n\n### References\nIf you have any questions or comments about this advisory:\n- Reach out to the [SUSE Rancher Security team](https://github.com/rancher/rancher/security/policy) for security related inquiries.\n- Open an issue in the [Rancher](https://github.com/rancher/rancher/issues/new/choose) repository.\n- 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/).",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/rancher/rancher"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.8.0"
}, {
"fixed" : "2.8.13"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/rancher/rancher"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.9.0"
}, {
"fixed" : "2.9.7"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/rancher/rancher"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.10.0"
}, {
"fixed" : "2.10.3"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/rancher/rancher/security/advisories/GHSA-mq23-vvg7-xfm4"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-23389"
}, {
"type" : "WEB",
"url" : "https://github.com/rancher/rancher/pull/48964"
}, {
"type" : "WEB",
"url" : "https://github.com/rancher/rancher/pull/49030"
}, {
"type" : "WEB",
"url" : "https://github.com/rancher/rancher/pull/49031"
}, {
"type" : "WEB",
"url" : "https://github.com/rancher/rancher/commit/4b885322eaf9995a1054bb46e019841653dc0d10"
}, {
"type" : "WEB",
"url" : "https://github.com/rancher/rancher/commit/cda77b743788feb8df8aedf9fd409ed0916a8723"
}, {
"type" : "WEB",
"url" : "https://github.com/rancher/rancher/commit/f36b896a99441985a1658e1b8c504d77e52fee4f"
}, {
"type" : "WEB",
"url" : "https://bugzilla.suse.com/show_bug.cgi?id=CVE-2025-23389"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/rancher/rancher"
}, {
"type" : "WEB",
"url" : "https://github.com/rancher/rancher/releases/tag/v2.10.3"
}, {
"type" : "WEB",
"url" : "https://github.com/rancher/rancher/releases/tag/v2.8.13"
}, {
"type" : "WEB",
"url" : "https://github.com/rancher/rancher/releases/tag/v2.9.7"
}, {
"type" : "WEB",
"url" : "https://pkg.go.dev/vuln/GO-2025-3490"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-284", "CWE-287" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2025-02-27T18:27:56Z",
"nvd_published_at" : "2025-04-11T11:15:42Z"
}
}