Advisory

GHSA-f9xf-jq4j-vqw4

Also known as: CVE-2021-25318, GO-2024-2768

Summary

Rancher does not properly specify ApiGroup when creating Kubernetes RBAC resources

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2024-04-24 21:02 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

github.com/rancher/rancher

Go · All systems

Affected

  • introduced 2.0.0, fixed 2.4.16 (semver)

Fixed versions

2.4.16

Fix

github.com/rancher/rancher

Go · All systems

Affected

  • introduced 2.5.0, fixed 2.5.9 (semver)

Fixed versions

2.5.9

Fix

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

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences