github.com/rancher/rancher
Affected
- introduced
2.5.0, fixed2.5.13(semver)
Fixed versions
2.5.13
Fix
- Fixed version
2.5.13go get github.com/rancher/[email protected]
Advisory
Also known as: CVE-2021-36783
Rancher doesn't properly sanitize credentials in cluster template answers
Impact
It was discovered that in Rancher versions up to and including 2.5.12 and 2.6.3 there is a failure to properly sanitize credentials in cluster template answers. This failure can lead to plaintext storage and exposure of credentials, passwords and API tokens.
The exposed credentials are visible in Rancher to authenticated Cluster Owners, Cluster Members, Project Owners and Project Members on the endpoints /v1/management.cattle.io.clusters, /v3/clusters and /k8s/clusters/local/apis/management.cattle.io/v3/clusters.
Sensitive fields are now stripped from Clusters objects before the object is stored. For objects that existed before this security fix, a one-time migration happens on startup.
Important:
Patches
Patched versions include releases 2.5.13, 2.6.4 and later versions.
Workarounds
Limit access in Rancher to trusted users. There is not a direct mitigation besides upgrading to the patched Rancher versions.
Important: It is highly advised to review for potential leaked credentials in this scenario, and to change them if deemed necessary.
For more information
If you have any questions or comments about this advisory:
Critical Basis: The source's own band: CRITICAL
2.5.0, fixed 2.5.13 (semver)2.5.13
2.5.13go get github.com/rancher/[email protected]2.6.0, fixed 2.6.4 (semver)2.6.4
2.6.4go 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