CVE-2022-45157: Exposure of vSphere's CPI and CSI credentials in Rancher
(updated )
A vulnerability has been identified in the way that Rancher stores vSphere’s CPI (Cloud Provider Interface) and CSI (Container Storage Interface) credentials used to deploy clusters through the vSphere cloud provider. This issue leads to the vSphere CPI and CSI passwords being stored in a plaintext object inside Rancher. This vulnerability is only applicable to users that deploy clusters in vSphere environments.
The exposed passwords were accessible in the following objects:
- Can be accessed by users that are cluster members of the provisioned clusters:
- When provisioning a new cluster with the vSphere cloud provider through Rancher’s UI (user interface), Cluster Templates and Terraform on the object
provisioning.cattle.io
inspec.rkeConfig.chartValues.rancher-vsphere-cpi
andspec.rkeConfig.chartValues.rancher-vsphere-csi
. - On the object
rke.cattle.io.rkecontrolplane
inspec.chartValues.rancher-vsphere-cpi
andspec.chartValues.rancher-vsphere-csi
. - Can be accessed by users with privileged access to the clusters’ infrastructure (host OS):
- Inside the
plan
files in the provisioned downstream clusters’ filesystems.
Note: if you believe that the vSphere credentials might have been accessed by unauthorized users, it’s highly recommended to change them, after updating Rancher to a patched version.
Please consult the associated MITRE ATT&CK - Technique - Credential Access for further information about this category of attack.
References
Detect and mitigate CVE-2022-45157 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →