CVE-2021-25320
JSON

9.9critical

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

Severity
9.9critical CVSS:3.1 by suse
Exploit likelihood
0.85% (higher than 56% of CVEs)
Published
Last changed
Assigned by
suse
Also known as
GHSA-gqf8-rvrh-g7w6GO-2026-4589

Description

A Improper Access Control vulnerability in Rancher, allows users in the cluster to make request to cloud providers by creating requests with the cloud-credential ID. Rancher in this case would attach the requested credentials without further checks This issue affects: Rancher versions prior to 2.5.9; Rancher versions prior to 2.4.16.

Affected

Product or packageVersionsReported by
Rancher Rancherfrom Rancher before 2.5.9, from Rancher before 2.4.16, before 2.4.16, from 2.5.0 before 2.5.9CVE List, NVD
github.com/rancher/rancher (Go)from 2.2.0 before 2.4.16, from 2.5.0 before 2.5.9, from 2.2.0+incompatibleGitHub Advisory Database, Go Vulnerability Database

All scores

suse9.9critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
GitHub9.9critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
NVD9.9critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
NVD4.0medium CVSS:2.0AV:N/AC:L/Au:S/C:P/I:N/A:N

Classification

What each source says

CVE List

A Improper Access Control vulnerability in Rancher, allows users in the cluster to make request to cloud providers by creating requests with the cloud-credential ID. Rancher in this case would attach the requested credentials without further checks This issue affects: Rancher versions prior to 2.5.9; Rancher versions prior to 2.4.16.

GitHub Advisory Database

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.

Go Vulnerability Database

Rancher cloud credentials can be used through proxy API by users without access in github.com/rancher/rancher.

NOTE: The source advisory for this report contains additional versions that could not be automatically mapped to standard Go module versions.

(If this is causing false-positive reports from vulnerability scanners, please suggest an edit to the report.)

The additional affected modules and versions are: github.com/rancher/rancher before v2.4.16, from v2.5.0 before v2.5.9.

NVD (es)

Una vulnerabilidad de Control de Acceso Inapropiado en Rancher, permite a usuarios del cluster hacer peticiones a los proveedores de la nube al crear peticiones con el ID de la credencial de la nube. Rancher en este caso adjuntaría las credenciales solicitadas sin más comprobaciones. Este problema afecta a: Versiones de Rancher anteriores a 2.5.9; versiones de Rancher anteriores a 2.4.16

References

Related

Sources

SourceRecordLicence
CVE ListCVE-2021-25320 changed 2024-09-16CVE Terms of Use
GitHub Advisory DatabaseGHSA-gqf8-rvrh-g7w6 changed 2026-09-10CC-BY-4.0
Go Vulnerability DatabaseGO-2026-4589 changed 2026-07-10CC-BY-4.0
NVDCVE-2021-25320 changed 2026-06-17Public domain