github.com/rancher/rancher
Affected
- introduced
2.0.0, fixed2.4.16(semver)
Fixed versions
2.4.16
Fix
- Fixed version
2.4.16go get github.com/rancher/[email protected]
Advisory
Also known as: CVE-2021-25318, GO-2024-2768
Rancher does not properly specify ApiGroup when creating Kubernetes RBAC resources
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.
High Basis: The source's own band: HIGH
2.0.0, fixed 2.4.16 (semver)2.4.16
2.4.16go get github.com/rancher/[email protected]2.5.0, fixed 2.5.9 (semver)2.5.9
2.5.9go get github.com/rancher/[email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0