github.com/rancher/rancher

CVE-2024-58267

CVE-2024-58267 is a high-severity security vulnerability in github.com/rancher/rancher (go), affecting versions >= 2.12.0, < 2.12.2. It is fixed in 2.12.2, 2.11.6, 2.10.10, 2.9.12.

Key facts
CVSS score
8.0
High
Attack vector
Network
Issuing authority
GitHub Advisory Database
Affected package
github.com/rancher/rancher
Fixed in
2.12.2, 2.11.6, 2.10.10, 2.9.12
Disclosed
2024

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 requestId that 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: <rancheruiaddress>/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.

Impact

Severity and exposure

CVE-2024-58267 has a CVSS score of 8.0 (High). The vector is network-reachable, low privileges required, and user interaction required. A CVSS score reflects the worst-case severity of the vulnerability, not your specific exposure. Whether this affects your application depends on whether the vulnerable code is present and reachable in your environment.

A fixed version is available (2.12.2, 2.11.6, 2.10.10, 2.9.12). Upgrading removes the vulnerable code path.

Affected versions

go

  • github.com/rancher/rancher (>= 2.12.0, < 2.12.2)
  • github.com/rancher/rancher (>= 2.11.0, < 2.11.6)
  • github.com/rancher/rancher (>= 2.10.0, < 2.10.10)
  • github.com/rancher/rancher (>= 2.9.0, < 2.9.12)

Security releases

  • github.com/rancher/rancher → 2.12.2 (go)
  • github.com/rancher/rancher → 2.11.6 (go)
  • github.com/rancher/rancher → 2.10.10 (go)
  • github.com/rancher/rancher → 2.9.12 (go)
Kodem intelligence

Severity tells you how bad this could be in the worst case. It does not tell you whether you are exposed. Exploitability and impact are functions of runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A vulnerable package can sit in your dependency tree and never run.

Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter instead of chasing every advisory.

Kodem's runtime-powered SCA identifies whether CVE-2024-58267 is reachable in your applications. Explore open-source security for your team.

See if CVE-2024-58267 is reachable in your applications. Get a demo

Already deployed Kodem? See CVE-2024-58267 in your environment

Remediation advice

Upgrade the following packages to resolve this vulnerability:

  • Upgrade github.com/rancher/rancher to 2.12.2 or later
  • Upgrade github.com/rancher/rancher to 2.11.6 or later
  • Upgrade github.com/rancher/rancher to 2.10.10 or later
  • Upgrade github.com/rancher/rancher to 2.9.12 or later

Kodem Kai can prioritize this vulnerability in your dependency tree and generate a fix recommendation.

Frequently asked questions about CVE-2024-58267

What is CVE-2024-58267?

CVE-2024-58267 is a high-severity security vulnerability in github.com/rancher/rancher (go), affecting versions >= 2.12.0, < 2.12.2. It is fixed in 2.12.2, 2.11.6, 2.10.10, 2.9.12.

How severe is CVE-2024-58267?

CVE-2024-58267 has a CVSS score of 8.0 (High). This score reflects the worst-case severity of the vulnerability, not your specific exposure. Whether it represents real risk in your environment depends on whether the vulnerable code is present and reachable.

Which versions of github.com/rancher/rancher are affected by CVE-2024-58267?

github.com/rancher/rancher (go) versions >= 2.12.0, < 2.12.2 is affected.

Is there a fix for CVE-2024-58267?

Yes. CVE-2024-58267 is fixed in 2.12.2, 2.11.6, 2.10.10, 2.9.12. Upgrade to this version or later.

Is CVE-2024-58267 exploitable, and should I be worried?

Whether CVE-2024-58267 is exploitable in your environment depends on whether the vulnerable code is present and reachable. A CVSS score is a worst-case rating; it does not account for your specific deployment, configuration, or usage patterns. Kodem, an Intelligent Application Security platform, uses runtime intelligence to show which vulnerabilities actually execute in production, so you can focus on the ones that represent real risk. Get a demo

What actually determines whether CVE-2024-58267 is exploitable, and how bad it is?

Exploitability and impact are not fixed properties of a CVE. They depend on runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A high CVSS score on a dependency that never runs is not the same as real risk. Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter.

How do I fix CVE-2024-58267?
  • Upgrade github.com/rancher/rancher to 2.12.2 or later
  • Upgrade github.com/rancher/rancher to 2.11.6 or later
  • Upgrade github.com/rancher/rancher to 2.10.10 or later
  • Upgrade github.com/rancher/rancher to 2.9.12 or later

Stop the waste.
Protect your environment with Kodem.