VDB
Sign up
HIGH8.8

GHSA-f9xf-jq4j-vqw4

Rancher does not properly specify ApiGroup when creating Kubernetes RBAC resources

Quick fix

GHSA-f9xf-jq4j-vqw4 — github.com/rancher/rancher: upgrade to the fixed version with the command below.

go get github.com/rancher/rancher@v2.4.16

Details

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

Go/github.com/rancher/rancher
Introduced in: 2.0.0Fixed in: 2.4.16
Fixgo get github.com/rancher/rancher@v2.4.16
Go/github.com/rancher/rancher
Introduced in: 2.5.0Fixed in: 2.5.9
Fixgo get github.com/rancher/rancher@v2.5.9

References