github.com/rancher/rancher
Affected
- introduced
2.6.0, fixed2.6.5(semver)
Fixed versions
2.6.5
Fix
- Fixed version
2.6.5go get github.com/rancher/[email protected]
Advisory
Also known as: CVE-2022-21951
Rancher's weave CNI password is not configured when a cluster is created from an RKE template
Impact
This vulnerability only affects customers using Weave CNI (Container Network Interface) when configured through RKE templates.
A flaw was discovered in Rancher versions from 2.5.0 up to and including 2.5.13 and from 2.6.0 up to and including 2.6.4, where a UI (user interface) issue with RKE templates does not include a value for the Weave password when Weave is chosen as the CNI.
If a cluster is created based on the mentioned template and Weave is configured as the CNI, no password will be created for network encryption in Weave, therefore network traffic in the cluster will be sent unencrypted.
This issue does not happen when a cluster, with Weave configured as CNI, is created without using an RKE template.
The impact of this vulnerability is higher when nodes on the cluster are on different locations and communicate with one another through the Internet, where monitoring (sniffing) of the network traffic by third-party entities can be more easily achieved.
Patches
Patched versions include releases 2.5.14, 2.6.5 and later versions of Rancher. Besides upgrading to a Rancher patched version, the workarounds listed below must be applied in order for Weave to properly encrypt the network traffic.
Workarounds
WEAVE_PASSWORD environment variable together with the a value for the password.$ kubectl -n kube-system edit ds weave-net
<snipped>
containers:
- command:
- /home/weave/launch.sh
env:
- name: INIT_CONTAINER
value: "true"
- name: HOSTNAME
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: spec.nodeName
- name: IPALLOC_RANGE
value: <IP allocation range>
- name: WEAVE_PASSWORD
value: "insert strong secret password here"
image: <Weave image>
<snipped>
Notes
For more information
If you have any questions or comments about this advisory:
Medium Basis: The source's own band: MODERATE
2.6.0, fixed 2.6.5 (semver)2.6.5
2.6.5go get github.com/rancher/[email protected]2.5.0, fixed 2.5.14 (semver)2.5.14
2.5.14go 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