RCE in Weave Gitops Tools
CVE-2022-35976
The GitOps Tools Extension for VSCode relies on kubeconfigs in order to communicate with Kubernetes clusters. A specially crafted kubeconfig leads to arbitrary code execution on behalf of the user running VSCode. Users relying on kubeconfigs that are generated or altered by other processes or users are affected by this issue. Please note that the vulnerability is specific to this extension, and the same kubeconfig would not result in arbitrary code execution when used with kubectl. Using only trust-worthy kubeconfigs is a safe mitigation. However, updating to the latest version of the extension is still highly recommended.
Vulnerability class: Command Injection (OS Command Injection)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 5.2 (Medium). Vector: CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:L.
EPSS exploit prediction
EPSS 0.005, 45.9th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Weave Gitops Tools
- Weaveworks Vscode-Gitops-Tools — versions >= 0.5.0, <= 0.20.9
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 1 other repository (karimhabush/cyberowl). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- github.com/weaveworks/vscode-gitops-tools/security/advisories/GHSA-287h-vjhw-jq… (Third Party Advisory)