github.com/rancher/rancher
Affected
- introduced
2.5.0, fixed2.5.10(semver)
Fixed versions
2.5.10
Fix
- Fixed version
2.5.10go get github.com/rancher/[email protected]
Advisory
Also known as: CVE-2021-36776, GO-2024-2771
Rancher's Steve API Component Improper authorization check allows privilege escalation
Impact
A flaw discovered in Rancher versions from 2.5.0 up to and including 2.5.9 allows an authenticated user to impersonate any user on a cluster through the Steve API proxy, without requiring knowledge of the impersonated user's credentials. This is due to the Steve API proxy not dropping the impersonation header before sending the request to the Kubernetes API. A malicious user with authenticated access to Rancher could use this to impersonate another user with administrator access in Rancher, receiving, then, administrator level access in the cluster.
Patches
Patched versions include releases 2.5.10, 2.6.0 and later versions.
Workarounds
Limit access in Rancher to trusted users. There is not a direct mitigation besides upgrading to the patched Rancher versions.
For more information
If you have any questions or comments about this advisory:
High Basis: The source's own band: HIGH
2.5.0, fixed 2.5.10 (semver)2.5.10
2.5.10go 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