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)
EPSS: 0.004 (35.3th percentile) — read the EPSS interpretation.
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.
Affected products
- Weave Gitops_tools
- Weaveworks Vscode-gitops-tools — versions >= 0.5.0, <= 0.20.9
Weakness classification (CWE)
Public proof-of-concept exploits
References
- security-advisories@github.com (x_refsource_CONFIRM, Third Party Advisory)
Frequently asked questions
- What is CVE-2022-35976?
- CVE-2022-35976 is a medium-severity vulnerability in Weave Gitops Tools, classified under OS Command Injection. CVSS score: 5.2/10. Published 2022-08-18.
- How severe is CVE-2022-35976?
- Medium severity. CVSS v3 base score is 5.2 out of 10.
- Is CVE-2022-35976 known to be exploited?
- 1 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.