CVE-2021-25318
JSON

8.8high

rancher: API group not properly specified when creating Kubernetes RBAC resources

Severity
8.8high CVSS:3.1 by suse
Exploit likelihood
1.05% (higher than 63% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
suse
Also known as
GHSA-f9xf-jq4j-vqw4GO-2024-2768

Description

A Incorrect Permission Assignment for Critical Resource vulnerability in Rancher allows users in the cluster to modify resources they should not have access to. 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.0.0 before 2.4.16, from 2.5.0 before 2.5.9, from 2.0.0+incompatibleGitHub Advisory Database, Go Vulnerability Database

All scores

suse8.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
GitHub8.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
GitHubhigh CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
NVD8.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD6.5medium CVSS:2.0AV:N/AC:L/Au:S/C:P/I:P/A:P

Classification

What each source says

CVE List

A Incorrect Permission Assignment for Critical Resource vulnerability in Rancher allows users in the cluster to modify resources they should not have access to. 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 versions 2.0 through the aforementioned fixed versions, where users were granted access to resources regardless of the resource's API group. For example Rancher should have allowed users access to apps.catalog.cattle.io, but instead incorrectly gave access to apps.*. Resource affected include:

Downstream clusters: apiservices clusters clusterrepos persistentvolumes storageclasses

Rancher management cluster apprevisions apps catalogtemplates catalogtemplateversions clusteralertgroups clusteralertrules clustercatalogs clusterloggings clustermonitorgraphs clusterregistrationtokens clusterroletemplatebindings clusterscans etcdbackups nodepools nodes notifiers pipelineexecutions pipelines pipelinesettings podsecuritypolicytemplateprojectbindings projectalertgroups projectalertrules projectcatalogs projectloggings projectmonitorgraphs projectroletemplatebindings projects secrets sourcecodeproviderconfigs

There is not a direct mitigation besides upgrading to the patched Rancher versions.

Go Vulnerability Database

Rancher does not properly specify ApiGroup when creating Kubernetes RBAC resources 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 Asignación Incorrecta de Permisos para Recursos Críticos en Rancher permite a usuarios del clúster modificar recursos a los que no deberían tener acceso. Este problema afecta a: Rancher versiones anteriores a 2.5.9; Rancher versiones anteriores a 2.4.16

References

Related

Sources

SourceRecordLicence
CVE ListCVE-2021-25318 changed 2024-09-16CVE Terms of Use
GitHub Advisory DatabaseGHSA-f9xf-jq4j-vqw4 changed 2026-09-10CC-BY-4.0
Go Vulnerability DatabaseGO-2024-2768 changed 2026-07-10CC-BY-4.0
NVDCVE-2021-25318 changed 2026-06-17Public domain