Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/rancher/rancher
  4. ›
  5. CVE-2021-36783

CVE-2021-36783: Rancher doesn't properly sanitize credentials in cluster template answers

March 3, 2026

It was discovered that in Rancher versions up to and including 2.5.12 and 2.6.3 there is a failure to properly sanitize credentials in cluster template answers. This failure can lead to plaintext storage and exposure of credentials, passwords and API tokens.

The exposed credentials are visible in Rancher to authenticated Cluster Owners, Cluster Members, Project Owners and Project Members on the endpoints /v1/management.cattle.io.clusters, /v3/clusters and /k8s/clusters/local/apis/management.cattle.io/v3/clusters.

Sensitive fields are now stripped from Clusters objects before the object is stored. For objects that existed before this security fix, a one-time migration happens on startup.

Important:

  • It is highly advised to review for potential leaked credentials in this scenario, and to change them if deemed necessary.
  • The final impact severity for confidentiality, integrity and availability is dependent on the permissions that the leaked credentials have on their own services.

References

  • bugzilla.suse.com/show_bug.cgi?id=1193990
  • github.com/advisories/GHSA-8w87-58w6-hfv8
  • github.com/rancher/rancher
  • github.com/rancher/rancher/security/advisories/GHSA-8w87-58w6-hfv8
  • nvd.nist.gov/vuln/detail/CVE-2021-36783

Code Behaviors & Features

Detect and mitigate CVE-2021-36783 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 2.5.0 before 2.5.13, all versions starting from 2.6.0 before 2.6.4

Fixed versions

  • 2.5.13
  • 2.6.4

Solution

Upgrade to versions 2.5.13, 2.6.4 or above.

Impact 9.9 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
  • CWE-312: Cleartext Storage of Sensitive Information
  • CWE-522: Insufficiently Protected Credentials

Source file

go/github.com/rancher/rancher/CVE-2021-36783.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 09 May 2026 12:20:11 +0000.