CVE-2023-22647 Rancher vulnerable to Privilege Escalation via manipulation of Secrets

Critical 9.9 Published Updated

Standard users can manipulate Kubernetes secrets to gain unauthorized access to service account tokens, leading to privilege escalation.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2023-22647?

CVE-2023-22647 is a critical vulnerability in SUSE Rancher, published on 1 Jun 2023. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

An Improper Privilege Management vulnerability in SUSE Rancher allowed standard users to leverage their existing permissions to manipulate Kubernetes secrets in the local cluster, resulting in the secret being deleted, but their read-level permissions to the secret being preserved. When this operation was followed-up by other specially crafted commands, it could result in the user gaining access to tokens belonging to service accounts in the local cluster.

This issue affects Rancher: from >= 2.6.0 before < 2.6.13, from >= 2.7.0 before < 2.7.4.

Weakness: CWE-267

Which versions are affected by CVE-2023-22647?

4 open source packages ship an affected version, including github.com/rancher/rancher. It affects 1 product.

PackageAffectedFixed in
github.com/rancher/rancher GoFrom 2.6.02.6.13
github.com/rancher/rancher GoFrom 2.6.02.6.13
github.com/rancher/rancher GoFrom 2.7.02.7.4
github.com/rancher/rancher GoFrom 2.7.02.7.4

Products include Suse Rancher.

How do I fix CVE-2023-22647?

Upgrade github.com/rancher/rancher to a fixed version for your release line: 2.6.13 or 2.7.4.

Is CVE-2023-22647 being exploited?

There is no known exploitation of CVE-2023-22647 in the wild and no public exploit code.

Sources

Also known as GHSA-p976-h52c-26p6.

Is CVE-2023-22647 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free