Categories
CVE-2022-21951

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

  1. 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.

❓ What is the problem

A vulnerability (CWE-311) exists in github.com/rancher/rancher. Attackers reach the vulnerable code path via WEAVE_PASSWORD.

📍 Affected scope

Check the vendor advisory for the affected versions of github.com/rancher/rancher. Attack surface: WEAVE_PASSWORD.

🔥 Severity

Severity: ?. Confidential information can be exposed externally.

🔧 How to fix

Update to 2.5.14.

🛡️ Workaround

Until the patch is applied: disable the affected feature, apply WAF rules, or restrict access via network ACLs.

🔍 Detection

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

  1. 1
    Identify 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 し、稼働しているサービス・バージョンを把握する。

  2. 2
    Apply patch patch
    Upgrade github.com/rancher/rancher to 2.5.14

    ステージング環境で 2.5.14 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。

  3. 3
    Post-deployment verification verify
    Confirm patched version is live in production

    パッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。

Affected packages

Go github.com/rancher/rancher
[{"type":"SEMVER","events":[{"introduced":"2.5.0"},{"fixed":"2.5.14"}]}]

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details