CVE-2021-25320 — Vulnerability in github.com/rancher/rancher
Rancher cloud credentials can be used through proxy API by users without access
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.86%). 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-25320 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
A vulnerability was discovered in Rancher 2.2.0 through the aforementioned patched versions, where cloud credentials weren't being properly validated through the Rancher API. Specifically through a proxy designed to communicate with cloud providers. Any Rancher user that was logged-in and aware of a cloud-credential ID that was valid for a given cloud provider, could call that cloud provider's API through the proxy API, and the cloud-credential would be attached. The exploit is limited to valid Rancher users. There is not a direct mitigation outside of upgrading to the patched Rancher versions.
Advisory Timeline
- First published March 3, 2026 (268 days ago).
- Last revised September 10, 2026 — 191 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
go get github.com/rancher/rancher@v2.4.16
go get github.com/rancher/rancher@v2.5.9
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.4.16 |
| github.com/rancher/rancher Go · Affected: All versions | 2.5.9 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-284
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-25320?
- Rancher cloud credentials can be used through proxy API by users without access. 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-25320?
- CVE-2021-25320 affects github.com/rancher/rancher. It has a 0.9% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2021-25320 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 — 55.8% 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-2026-44939CRITICAL
Rancher vulnerable to command injection through unsanitized YAML parameter
- CVE-2023-22647CRITICAL
Rancher vulnerable to Privilege Escalation via manipulation of Secrets
- CVE-2026-41052CRITICAL
Rancher has Privilege Escalation from Project Owner to Host
- CVE-2019-11202CRITICAL
Rancher Recreates Default User With Known Password Despite Deletion
- CVE-2025-67601HIGH
Rancher CLI skips TLS verification on Rancher CLI login command
- CVE-2025-23389HIGH
Rancher does not Properly Validate Account Bindings in SAML Authentication Enables User Impersonation on First Login
- CVE-2024-58267HIGH
Rancher CLI SAML authentication is vulnerable to phishing attacks
- CVE-2022-45157HIGH
Exposure of vSphere's CPI and CSI credentials in Rancher