GHSA-xhg2-rvm8-w2jh
Rancher Vulnerable to Cross-site Request Forgery (CSRF)
Quick fix
GHSA-xhg2-rvm8-w2jh — github.com/rancher/rancher: upgrade to the fixed version with the command below.
go get github.com/rancher/rancher@v2.0.16Details
Rancher 2 through 2.2.4 is vulnerable to a Cross-Site Websocket Hijacking attack that allows an exploiter to gain access to clusters managed by Rancher. The attack requires a victim to be logged into a Rancher server, and then to access a third-party site hosted by the exploiter. Once that is accomplished, the exploiter is able to execute commands against the cluster's Kubernetes API with the permissions and identity of the victim.
Are you affected?
Enter the version of the package you're using.
Affected packages
2.0.0Fixed in: 2.0.16go get github.com/rancher/rancher@v2.0.162.1.0Fixed in: 2.1.11go get github.com/rancher/rancher@v2.1.112.2.0Fixed in: 2.2.5go get github.com/rancher/rancher@v2.2.5References
Check it before you install it
One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.
curl -s https://vdb.ai.kr/v1/ai/check-packages \
-H 'Content-Type: application/json' \
-d '{"packages":["pkg:golang/github.com/rancher/rancher"]}'