CVE-2022-21953

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.

Does this CVE actually affect you?

Kodem shows which CVEs are reachable and running in your applications, so you fix what's exploitable, not just what's listed.

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.

Runtime intelligence, not another scanner.

Summary

Authenticated user can gain unauthorized shell pod and kubectl access in the local cluster

Workarounds

There is no workaround or direct mitigation besides updating to a patched Rancher version.

For more information

If you have any questions or comments about this advisory:

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:

  1. 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.

  2. 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.

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.

Affected versions

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)

Security releases

github.com/rancher/rancher → 2.5.17 (go) github.com/rancher/rancher → 2.6.10 (go) github.com/rancher/rancher → 2.7.1 (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. Kodem's runtime-powered SCA identifies whether this CVE is reachable in your applications.

Already deployed Kodem?

See it in your environmentNew to Kodem? Get a demo →

Remediation advice

Patched versions include releases 2.5.17, 2.6.10, 2.7.1 and later versions.

Frequently Asked Questions

  1. What is CVE-2022-21953? 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.
  2. How severe is CVE-2022-21953? 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.
  3. Which versions of github.com/rancher/rancher are affected by CVE-2022-21953? github.com/rancher/rancher (go) versions >= 2.5.0, < 2.5.17 is affected.
  4. Is there a fix for CVE-2022-21953? Yes. CVE-2022-21953 is fixed in 2.5.17, 2.6.10, 2.7.1. Upgrade to this version or later.
  5. Is CVE-2022-21953 exploitable, and should I be worried? 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
  6. What actually determines whether CVE-2022-21953 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.
  7. How do I fix CVE-2022-21953?
    • Upgrade github.com/rancher/rancher to 2.5.17 or later
    • Upgrade github.com/rancher/rancher to 2.6.10 or later
    • Upgrade github.com/rancher/rancher to 2.7.1 or later

Other vulnerabilities in github.com/rancher/rancher

Stop the waste.
Protect your environment with Kodem.