Vulnerability in github.com/rancher/rancher (CVE-2022-21951)
Summary
Vulnerability in github.com/rancher/rancher (CVE-2022-21951). Confidential information can be exposed externally. Exploitable via WEAVE_PASSWORD. Mitigation: upgrade to 2.5.14 or later.
Original description
The description as published by the source.
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
- A man…
Source: OSV.dev (Open Source Vulnerabilities) NVD GitHub Advisory OSV
Auto-generated summary
Assembled by SecPulse from the source data (CVSS, CWE, affected versions) using templates — no AI involved. Check the original description and references below for exact details.
A vulnerability tracked as CVE-2022-21951 has been found in github.com/rancher/rancher.
Attackers can target a specific entry point like WEAVE_PASSWORD over the network to misuse the product.
Confidential information can be exposed externally.
What to do: upgrade github.com/rancher/rancher to 2.5.14 or later.
If unsure, ask your IT team or search "github.com/rancher/rancher CVE-2022-21951" on the vendor's site.
CVE-2022-21951 (github.com/rancher/rancher) — CWE-311
Attack vector: remote (network-reachable) / no user interaction
Attack surface: WEAVE_PASSWORD
Patched: 2.5.14 — apply immediately
Plan: 1) Audit SBOM/dependencies, 2) Stage→prod upgrade, 3) Add WAF/proxy monitoring on affected endpoints, 4) Hunt IOCs in logs.
Refs: see the GHSA / vendor advisory / patched release linked on this page.
A vulnerability (CWE-311) exists in github.com/rancher/rancher. Attackers reach the vulnerable code path via WEAVE_PASSWORD.
Check the vendor advisory for the affected versions of github.com/rancher/rancher. Attack surface: WEAVE_PASSWORD.
Severity: ?. Confidential information can be exposed externally.
Update to 2.5.14.
Until the patch is applied: disable the affected feature, apply WAF rules, or restrict access via network ACLs.
Search webserver/proxy logs for unusual request patterns matching this CVE's known IOCs. Run grep -r 'github.com/rancher/rancher' . against your dependency files (package-lock.json, requirements.txt, go.sum) to find affected services.
Response actions
Concrete steps and command examples for SOC/SRE teams to execute in order
-
1Identify exposure identify
grep -r 'github.com/rancher/rancher' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
github.com/rancher/rancherを grep し、稼働しているサービス・バージョンを把握する。 -
2Apply patch patch
Upgrade github.com/rancher/rancher to 2.5.14ステージング環境で 2.5.14 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。
-
3Post-deployment verification verify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
Affected packages
References
- advisory nvd.nist.gov
- package github.com
- web github.com
- web bugzilla.suse.com