CVE-2021-36782 Rancher: Plaintext storage and exposure of credentials in Rancher API and cluster.management.cattle.io object
Authenticated users can retrieve plaintext sensitive credentials via the Kubernetes API, exposing secrets to unauthorized parties.
- 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-2021-36782?
CVE-2021-36782 is a critical vulnerability in SUSE Rancher, published on 7 Sep 2022. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
A Cleartext Storage of Sensitive Information vulnerability in SUSE Rancher allows authenticated Cluster Owners, Cluster Members, Project Owners, Project Members and User Base to use the Kubernetes API to retrieve plaintext version of sensitive data. This issue affects: SUSE Rancher Rancher versions prior to 2.5.16; Rancher versions prior to 2.6.7.
Weakness: CWE-312
Which versions are affected by CVE-2021-36782?
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.5.0 | 2.5.16 |
github.com/rancher/rancher Go | From 2.5.0 | 2.5.16 |
github.com/rancher/rancher Go | From 2.6.0 | 2.6.7 |
github.com/rancher/rancher Go | From 2.6.0 | 2.6.7 |
Products include Suse Rancher.
How do I fix CVE-2021-36782?
Upgrade github.com/rancher/rancher to a fixed version for your release line: 2.5.16 or 2.6.7.
Is CVE-2021-36782 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-36782 exists.
Public exploit code: 1 Metasploit module and 1 proofs of concept on GitHub.
Other vulnerabilities in SUSE Rancher
- 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-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-g7j7-h4q8-8w2f.