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 package | Versions | Reported by |
|---|---|---|
| Rancher Rancher | from Rancher before 2.5.9, from Rancher before 2.4.16, before 2.4.16, from 2.5.0 before 2.5.9 | CVE 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+incompatible | GitHub Advisory Database, Go Vulnerability Database |
All scores
| suse | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| GitHub | high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N |
| NVD | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 6.5medium CVSS:2.0 | AV: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
| https://bugzilla.suse.com/show_bug.cgi?id=1184913 | issue-tracking, third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2021-25318 | advisory | |
| https://github.com/rancher/rancher/issues/33590 | report, web | |
| https://github.com/rancher/rancher | package | |
| https://pkg.go.dev/vuln/GO-2024-2768 | web | |
| https://github.com/advisories/GHSA-f9xf-jq4j-vqw4 | advisory | |
Related
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-25318 changed 2024-09-16 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-f9xf-jq4j-vqw4 changed 2026-09-10 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2024-2768 changed 2026-07-10 | CC-BY-4.0 |
| NVD | CVE-2021-25318 changed 2026-06-17 | Public domain |