Insufficiently Protected Credentials Affecting github.com/rancher/rancher/pkg/capr/planner package, versions >=2.7.0 <2.8.9-alpha10>=2.9.0 <2.9.3-alpha5


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.04% (11th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-GOLANG-GITHUBCOMRANCHERRANCHERPKGCAPRPLANNER-8309128
  • published28 Oct 2024
  • disclosed25 Oct 2024
  • creditUnknown

Introduced: 25 Oct 2024

CVE-2022-45157  (opens in a new tab)
CWE-522  (opens in a new tab)

How to fix?

Upgrade github.com/rancher/rancher/pkg/capr/planner to version 2.8.9-alpha10, 2.9.3-alpha5 or higher.

Overview

github.com/rancher/rancher/pkg/capr/planner is a project that provides a container management platform built for organizations that deploy containers in production

Affected versions of this package are vulnerable to Insufficiently Protected Credentials in internal configuration objects, which are written to disk during vSphere cluster provisioning. An attacker with cluster member level or privileged infrastructure access can expose the CSI and CPI credentials in spec.rkeConfig.chartValues.rancher-vsphere-cpi and spec.rkeConfig.chartValues.rancher-vsphere-csi, under the provisioning.cattle.io object, or the spec.chartValues.rancher-vsphere-cpi and spec.chartValues.rancher-vsphere-csi credentials under the rke.cattle.io.rkecontrolplane object, or either set of secrets in a plan file on a downstream cluster.

Note: After upgrading to a fixed version, existing clusters must be scrubbed of stored secrets. A script has been provided to remove them: https://github.com/rancherlabs/support-tools/blob/master/migrate-vsphere-clusters/migrate-vsphere-clusters.sh

CVSS Scores

version 4.0
version 3.1