Skip to main content

CVE-2021-25320 — Vulnerability in github.com/rancher/rancher

CRITICAL

Rancher cloud credentials can be used through proxy API by users without access

Published March 3, 2026Updated September 10, 2026Source: OSV

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.

Check my go.sum

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
Update github.com/rancher/rancher to 2.4.16 or later
go get github.com/rancher/rancher@v2.4.16
Go
Update github.com/rancher/rancher to 2.5.9 or later
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).

PackageFixed In
github.com/rancher/rancher Go · Affected: All versions2.4.16
github.com/rancher/rancher Go · Affected: All versions2.5.9

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.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High

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

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

CVSS Score
9.9

Maximum impact if exploited, often with little effort or access required.

EPSS Score (30-day exploit probability)
0.86%
EPSS percentile: 55.8

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

GHSA-gqf8-rvrh-g7w6
GO-2026-4589

Related CVEs

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my go.sum