{"id":"CVE-2021-36783","aliases":["GHSA-8w87-58w6-hfv8"],"title":"Rancher doesn't properly sanitize credentials in cluster template answers","summary":"Rancher doesn't properly sanitize credentials in cluster template answers","severity":"critical","cvss":9.9,"cvssVector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","vendor":"rancher","product":"github.com/rancher/rancher","ecosystem":"go","affected":["github.com/rancher/rancher >= 2.5.0, < 2.5.13","github.com/rancher/rancher >= 2.6.0, < 2.6.4"],"patched":["github.com/rancher/rancher 2.5.13","github.com/rancher/rancher 2.6.4"],"published":"2026-03-03","updated":"2026-07-08","source":"OSV","sourceUrl":"https://osv.dev/vulnerability/GHSA-8w87-58w6-hfv8","references":[{"url":"https://github.com/rancher/rancher/security/advisories/GHSA-8w87-58w6-hfv8"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-36783"},{"url":"https://bugzilla.suse.com/show_bug.cgi?id=1193990"},{"url":"https://github.com/rancher/rancher"}],"tags":["osv","go"],"epss":0.0076,"epssPercentile":0.53848,"ingestedAt":"2026-07-09T18:56:36.247Z","slug":"CVE-2021-36783","body":"## Overview\n\n### Impact\n\nIt 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.\n\nThe 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`.\n\nSensitive 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.\n\n**Important:**\n- It is highly advised to review for potential leaked credentials in this scenario, and to change them if deemed necessary.\n- The final impact severity for confidentiality, integrity and availability is dependent on the permissions that the leaked credentials have on their own services.\n\n### Patches\nPatched versions include releases 2.5.13, 2.6.4 and later versions.\n\n### Workarounds\nLimit access in Rancher to trusted users. There is not a direct mitigation besides upgrading to the patched Rancher versions.\n\n**Important:** It is highly advised to review for potential leaked credentials in this scenario, and to change them if deemed necessary.\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Reach out to [SUSE Rancher Security team](https://github.com/rancher/rancher/security/policy) for security related inquiries.\n* Open an issue in [Rancher](https://github.com/rancher/rancher/issues/new/choose) repository.\n* Verify our [support matrix](https://www.suse.com/suse-rancher/support-matrix/all-supported-versions/) and [product support lifecycle](https://www.suse.com/lifecycle/).\n\n## Affected packages\n\n- `github.com/rancher/rancher >= 2.5.0, < 2.5.13`\n- `github.com/rancher/rancher >= 2.6.0, < 2.6.4`\n\n## Remediation\n\nUpgrade to a patched release:\n\n- `github.com/rancher/rancher 2.5.13`\n- `github.com/rancher/rancher 2.6.4`","depth":"midnight","depthScore":55,"depthScoreParts":{"impact":54.5,"likelihood":0.2,"exploitation":0,"ransomware":0},"changes":[]}