Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/rancher/rancher
  4. ›
  5. CVE-2022-45157

CVE-2022-45157: Exposure of vSphere's CPI and CSI credentials in Rancher

October 25, 2024 (updated November 13, 2024)

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 in spec.rkeConfig.chartValues.rancher-vsphere-cpi and spec.rkeConfig.chartValues.rancher-vsphere-csi.
  • On the object rke.cattle.io.rkecontrolplane in spec.chartValues.rancher-vsphere-cpi and spec.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

  • bugzilla.suse.com/show_bug.cgi?id=CVE-2022-45157
  • github.com/advisories/GHSA-xj7w-r753-vj8v
  • github.com/rancher/rancher
  • github.com/rancher/rancher/security/advisories/GHSA-xj7w-r753-vj8v
  • nvd.nist.gov/vuln/detail/CVE-2022-45157

Code Behaviors & Features

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 →

Affected versions

All versions starting from 2.7.0 before 2.8.9, all versions starting from 2.9.0 before 2.9.3

Fixed versions

  • 2.9.3
  • 2.8.9

Solution

Upgrade to versions 2.8.9, 2.9.3 or above.

Impact 9.1 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:L

Learn more about CVSS

Weakness

  • CWE-522: Insufficiently Protected Credentials

Source file

go/github.com/rancher/rancher/CVE-2022-45157.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:57 +0000.