CVE-2021-36782 Rancher: Plaintext storage and exposure of credentials in Rancher API and cluster.management.cattle.io object

Critical 9.9 Published Updated

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.

PackageAffectedFixed in
github.com/rancher/rancher GoFrom 2.5.02.5.16
github.com/rancher/rancher GoFrom 2.5.02.5.16
github.com/rancher/rancher GoFrom 2.6.02.6.7
github.com/rancher/rancher GoFrom 2.6.02.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.

Sources

Also known as GHSA-g7j7-h4q8-8w2f.

Is CVE-2021-36782 in your software?

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

Check your SBOMs for free