CVE-2024-58267 — Vulnerability in github.com/rancher/rancher
Rancher CLI SAML authentication is vulnerable to phishing attacks
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.24%). 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-2024-58267 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.
Summary
Impact
A vulnerability has been identified within Rancher Manager whereby the SAML authentication from the Rancher CLI tool is vulnerable to phishing attacks. The custom authentication protocol for SAML-based providers can be abused to steal Rancher’s authentication tokens.
Rancher Manager deployments without SAML authentication enabled are not affected by this vulnerability.
An attacker can generate a phishing SAML login URL which contains a publicKey and requestId controlled by the attacker. The attacker can then give the link to another user (eg: admin) and if the victim goes to the link unsuspectingly, they might not notice the bad parameters in the URL. The user will be prompted to login and might believe that its session has ended so they need to re-login. By clicking on the link, they will be logged in and an encrypted token will be created with the attacker's public key. The attacker can then decrypt the victim’s Rancher token, enabling the attack
Please consult the associated MITRE ATTACK Techniques - Privilege Escalation for further information about this category of attack.
Patches
This vulnerability is addressed by changes in both Rancher Manager and the CLI. The fixed versions:
- The Rancher CLI now reports the
requestIdthat is relevant to the authentication session in process as a separate message to the terminal, making it easier for the user to identify and compare. - The Rancher login page for SAML authentication will display a suitable warning to ensure that the user seeing the login page is aware of the login process with the related
requestId, enabling users to verify whether the request was intended or not.
Patched versions of Rancher include releases v2.12.2, v2.11.6, v2.10.10, and v2.9.12.
Workarounds
If you cannot update to one of the fixed versions, make sure to check the URL printed by the Rancher CLI when performing a SAML authentication flow, especially the requestId parameter. The URL and the requestId printed by the CLI must be the same URL that you access and see when finalizing the SAML authentication flow in your browser for the Rancher UI. The URL has the format:
<rancher_ui_address>/dashboard/auth/login?requestId=<requestid>&publicKey=<pubkey>&responseType=<responsetype>
If the URL presented in the browser is different from the one logged by the CLI, the user must not proceed with the login, as they might be under a phishing attack.
References
If you have any questions or comments about this advisory:
- Reach out to the SUSE Rancher Security team for security related inquiries.
- Open an issue in the Rancher repository.
- Verify with our support matrix and product support lifecycle.
Advisory Timeline
- First published September 26, 2025 (426 days ago).
- Last revised September 10, 2026 — 349 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
go get github.com/rancher/rancher@v2.9.12
go get github.com/rancher/rancher@v2.10.10
go get github.com/rancher/rancher@v2.12.2
go get github.com/rancher/rancher@v2.11.6
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (4)
Affects 1 ecosystem: Go (1).
| Package | Fixed In |
|---|---|
| github.com/rancher/rancher Go · Affected: All versions | 2.9.12 |
| github.com/rancher/rancher Go · Affected: All versions | 2.10.10 |
| github.com/rancher/rancher Go · Affected: All versions | 2.12.2 |
| github.com/rancher/rancher Go · Affected: All versions | 2.11.6 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-345Insufficient Verification of Data AuthenticityMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 8.0 score means for each attack dimension.
CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H
References
Frequently Asked Questions
- What is CVE-2024-58267?
- Rancher CLI SAML authentication is vulnerable to phishing attacks. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 8.0/10).
- How do I check if my project is affected by CVE-2024-58267?
- CVE-2024-58267 affects github.com/rancher/rancher. It has a 0.2% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2024-58267 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Significant impact if exploited, or exploitable with modest effort.
This is a below-median EPSS score — only 9.4% 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
Related CVEs
- CVE-2024-22036CRITICAL
Rancher Remote Code Execution via Cluster/Node Drivers
- CVE-2026-44939CRITICAL
Rancher vulnerable to command injection through unsanitized YAML parameter
- CVE-2023-22647CRITICAL
Rancher vulnerable to Privilege Escalation via manipulation of Secrets
- CVE-2026-41052CRITICAL
Rancher has Privilege Escalation from Project Owner to Host
- CVE-2019-11202CRITICAL
Rancher Recreates Default User With Known Password Despite Deletion
- CVE-2025-67601HIGH
Rancher CLI skips TLS verification on Rancher CLI login command
- CVE-2025-23389HIGH
Rancher does not Properly Validate Account Bindings in SAML Authentication Enables User Impersonation on First Login
- CVE-2022-45157HIGH
Exposure of vSphere's CPI and CSI credentials in Rancher