CVE-2022-21953 is a high-severity missing authorization vulnerability in github.com/rancher/rancher (go), affecting versions >= 2.5.0, < 2.5.17. It is fixed in 2.5.17, 2.6.10, 2.7.1.
Impact An issue was discovered in Rancher where an authorization logic flaw allows an authenticated user on any downstream cluster to (1) open a shell pod in the Rancher local cluster and (2) have limited kubectl access to it. The expected behavior is that a user does not have such access in the Rancher local cluster unless explicitly granted. This issue does not allow the user to escalate privileges in the local cluster directly (this would require another vulnerability to be exploited). The security issue happens in two different ways: Shell pod access - This is when a user opens a shell pod in the Rancher UI to a downstream cluster that the user has permission to access. The web request can be intercepted using the browser's web inspector/network console or a proxy tool to change the shell's destination to the Rancher local cluster instead of the desired downstream cluster. This flaw cannot be exploited to access a downstream cluster that the user has no permissions to. The shell pod runs with a limited non-root user, reducing the severity of this issue. However, even as a non-root user, it is still possible download and run binaries inside the shell pod. The blast radius of this issue can increase based on the configuration of the local cluster. For example: If the local cluster has unlimited network access, e.g. to the Internet, the user can open a reverse network connection to the shell pod. Or access the cloud metadata API of the underlying cloud infrastructure, where the user can extract the credentials associated with the local cluster and use them to interact with the cloud environment (this will be limited by the permissions granted to the cloud credentials in question). Check further recommendations about liming access to the cloud metadata API in Rancher's security best practices. Kubectl access - When downloading the kubeconfig file of a downstream cluster that the user has access to, the server cluster address in the kubeconfig file can be changed to point to the Rancher local cluster instead of the intended downstream cluster. This can also be achieved by crafting a kubeconfig using a Rancher token instead of using the kubeconfig from an active cluster. This flaw cannot be exploited to access a downstream cluster that the user has no permissions to. Notes: Rancher local cluster means the cluster where Rancher is installed. It is named as local inside the list of clusters in the Rancher UI. Audit logs in Rancher can be used to identify possible abuses of this issue, by tracking API requests to the user ID of the user that performed the action. API audit logs can be enabled as described in the documentation when set to level 1 or above. Workarounds There is no workaround or direct mitigation besides updating to a patched Rancher version. Patches Patched versions include releases 2.5.17, 2.6.10, 2.7.1 and later versions. For more information If you have any questions or comments about this advisory: Reach out to SUSE Rancher Security team for security related inquiries. Open an issue in Rancher repository. Verify our support matrix and product support lifecycle.
The application does not perform an authorization check before performing a sensitive operation. Typical impact: unauthorized access to restricted functionality or data.
CVE-2022-21953 has a CVSS score of 7.4 (High). The vector is network-reachable, low privileges required, and no user interaction. 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.5.17, 2.6.10, 2.7.1). Upgrading removes the vulnerable code path.
go
github.com/rancher/rancher (>= 2.5.0, < 2.5.17)github.com/rancher/rancher (>= 2.6.0, < 2.6.10)github.com/rancher/rancher (>= 2.7.0, < 2.7.1)github.com/rancher/rancher → 2.5.17 (go)github.com/rancher/rancher → 2.6.10 (go)github.com/rancher/rancher → 2.7.1 (go)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-2022-21953 is reachable in your applications. Explore open-source security for your team.
See if CVE-2022-21953 is reachable in your applications. Get a demo
Already deployed Kodem? See CVE-2022-21953 in your environment →Upgrade the following packages to resolve this vulnerability:
github.com/rancher/rancher to 2.5.17 or latergithub.com/rancher/rancher to 2.6.10 or latergithub.com/rancher/rancher to 2.7.1 or laterKodem Kai can prioritize this vulnerability in your dependency tree and generate a fix recommendation.
CVE-2022-21953 is a high-severity missing authorization vulnerability in github.com/rancher/rancher (go), affecting versions >= 2.5.0, < 2.5.17. It is fixed in 2.5.17, 2.6.10, 2.7.1. The application does not perform an authorization check before performing a sensitive operation.
CVE-2022-21953 has a CVSS score of 7.4 (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.
github.com/rancher/rancher (go) versions >= 2.5.0, < 2.5.17 is affected.
Yes. CVE-2022-21953 is fixed in 2.5.17, 2.6.10, 2.7.1. Upgrade to this version or later.
Whether CVE-2022-21953 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
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.
github.com/rancher/rancher to 2.5.17 or latergithub.com/rancher/rancher to 2.6.10 or latergithub.com/rancher/rancher to 2.7.1 or later