CVE-2021-36783 — Vulnerability in github.com/rancher/rancher
Rancher doesn't properly sanitize credentials in cluster template answers
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.82%). Schedule for your next planned update.
Does your project use an affected github.com/rancher/rancher version?
Paste your go.sum to check it for CVE-2021-36783 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Impact
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.
Patches
Patched versions include releases 2.5.13, 2.6.4 and later versions.
Workarounds
Limit access in Rancher to trusted users. There is not a direct mitigation besides upgrading to the patched Rancher versions.
Important: It is highly advised to review for potential leaked credentials in this scenario, and to change them if deemed necessary.
For more information
If you have any questions or comments about this advisory:
- Reach out to SUSE Rancher Security team for security related inquiries.
- Open an issue in Rancher repository.
- Verify our support matrix and product support lifecycle.
Advisory Timeline
- First published March 3, 2026 (268 days ago).
- Last revised July 8, 2026 — 127 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
go get github.com/rancher/rancher@v2.5.13
go get github.com/rancher/rancher@v2.6.4
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (2)
Affects 1 ecosystem: Go (1).
| Package | Fixed In |
|---|---|
| github.com/rancher/rancher Go · Affected: All versions | 2.5.13 |
| github.com/rancher/rancher Go · Affected: All versions | 2.6.4 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.9 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
References
Frequently Asked Questions
- What is CVE-2021-36783?
- Rancher doesn't properly sanitize credentials in cluster template answers. This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.9/10).
- How do I check if my project is affected by CVE-2021-36783?
- CVE-2021-36783 affects github.com/rancher/rancher. It has a 0.8% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2021-36783 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Maximum impact if exploited, often with little effort or access required.
This is an above-median EPSS score — 54.2% of tracked vulnerabilities score at or below it, putting its exploitation likelihood in the upper half of the tracked corpus.
Also Known As
Related CVEs
- CVE-2023-22651CRITICAL
Rancher Webhook is misconfigured during upgrade process
- CVE-2022-31247CRITICAL
Rancher has downstream cluster privilege escalation through cluster and project role template binding (CRTB/PRTB)
- CVE-2023-32196CRITICAL
Rancher allows privilege escalation in Windows nodes due to Insecure Access Control Lists
- CVE-2024-52281HIGH
Rancher UI has Stored Cross-site Scripting vulnerability
- CVE-2024-58259HIGH
Rancher affected by unauthenticated Denial of Service
- CVE-2026-41053HIGH
Rancher has over-inclusive team membership expansion in GitHub App authentication provider
- CVE-2026-25705HIGH
Rancher Extensions have arbitrary file access via path traversal
- CVE-2024-22031HIGH
Rancher users who can create Projects can gain access to arbitrary projects