CVE-2023-22647 Rancher vulnerable to Privilege Escalation via manipulation of Secrets
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.
| Package | Affected | Fixed in |
|---|---|---|
github.com/rancher/rancher Go | From 2.6.0 | 2.6.13 |
github.com/rancher/rancher Go | From 2.6.0 | 2.6.13 |
github.com/rancher/rancher Go | From 2.7.0 | 2.7.4 |
github.com/rancher/rancher Go | From 2.7.0 | 2.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.
Other vulnerabilities in SUSE Rancher
- CVE-2023-22651 Rancher Webhook is misconfigured during upgrade process
- CVE-2022-43757 Rancher: Exposure of sensitive fields
- CVE-2021-36782 Rancher: Plaintext storage and exposure of credentials in Rancher API and cluster.management.cattle.io object
- CVE-2021-36783 Rancher: Failure to properly sanitize credentials in cluster template answers
- CVE-2019-11202 Rancher Recreates Default User With Known Password Despite Deletion
Sources
Also known as GHSA-p976-h52c-26p6.