# CVE-2022-35976: Improper KubeConfig handling allows arbitrary code execution

- Severity: Medium 5.2 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.54%, higher than 46% of CVEs (2026-12-01)
- Published: 2022-08-18T18:50:08.000Z
- Modified: 2026-06-17T04:52:38.267Z
- Weaknesses: CWE-78
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- weaveworks vscode-gitops-tools: >= 0.5.0, <= 0.20.9
- weave gitops_tools: from 0.5.0 up to 0.20.9

## Every score

- GitHub_M: CVSS:3.1 5.2 Medium `CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:L`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/weaveworks/vscode-gitops-tools/security/advisories/GHSA-287h-vjhw-jqf7> (third-party-advisory)

## Sources

- CVE List: [CVE-2022-35976](https://www.cve.org/CVERecord?id=CVE-2022-35976), CVE Terms of Use, modified 2025-04-23
- NVD: [CVE-2022-35976](https://nvd.nist.gov/vuln/detail/CVE-2022-35976), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-35976 · Whole record: https://cve.day/CVE-2022-35976.json · Rebuilt by cve.day 2026-11-25T22:58:14.294Z
