CVE-2018-20321 Access Control Bypass
Project members can escalate privileges to cluster admin by mounting a service account in the default namespace, requiring namespace isolation for mitigation.
- 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-2018-20321?
CVE-2018-20321 is a high-severity vulnerability in n/a, published on 10 Apr 2019. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
An issue was discovered in Rancher 2 through 2.1.5. Any project member with access to the default namespace can mount the netes-default service account in a pod, and then use that pod to execute administrative privileged commands against the k8s cluster. This could be mitigated by isolating the default namespace in a separate project, where only cluster admins can be given permissions to access. As of 2018-12-20, this bug affected ALL clusters created or imported by Rancher.
Weakness: CWE-668
Which versions are affected by CVE-2018-20321?
3 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.0.0 | 2.1.6 |
github.com/rancher/rancher Go | From 2.0.0 | 2.1.6 |
github.com/rancher/rancher Go | From 2.0.0+incompatible | 2.1.6+incompatible |
Products include Suse Rancher.
How do I fix CVE-2018-20321?
Upgrade github.com/rancher/rancher to a fixed version for your release line: 2.1.6 or 2.1.6+incompatible.
Is CVE-2018-20321 being exploited?
There is no known exploitation of CVE-2018-20321 in the wild and no public exploit code.
Other vulnerabilities in n/a
- CVE-2023-22647 Rancher vulnerable to Privilege Escalation via manipulation of Secrets
- 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
Sources
Also known as GHSA-9qq2-xhmc-h9qr, GO-2022-0644.