{"id":"CVE-2021-22539","published":"2021-04-16T10:15:12Z","modified":"2024-09-17T01:46:31Z","title":"Code execution in VSCode-bazel via malicious Bazel config files","vendor":"Google","product":"VSCode-Bazel","tier":"tail","description":{"text":"An attacker can place a crafted JSON config file into the project folder pointing to a custom executable. VScode-bazel allows the workspace path to lint *.bzl files to be set via this config file. As such the attacker is able to execute any executable on the system through vscode-bazel. We recommend upgrading to version 0.4.1 or above.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.2,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0031,"percentile":0.24503,"provenance":"source"},"cwes":[{"id":"CWE-73","name":"External Control of File Name or Path"}],"references":[{"url":"https://github.com/bazelbuild/vscode-bazel/security/advisories/GHSA-2rcw-j8x4-hgcv","tags":["x_refsource_MISC"]},{"url":"https://github.com/bazelbuild/vscode-bazel-ghsa-2rcw-j8x4-hgcv/pull/1","tags":["x_refsource_MISC"]}],"priority":{"score":10.6,"factors":[{"name":"EPSS percentile","points":4.9},{"name":"CVSS severity","points":5.74}]},"vendorSlug":"google","affectedVersions":[{"vendor":"Google LLC","product":"VSCode-Bazel","versions":[">= unspecified, <= 0.4.0"]}],"solutions":{"items":["Upgrade vscode-bazel to version 0.4.1 or above"],"from":"CVE.org CNA","provenance":"source"},"euvd":{"id":"EUVD-2021-9680","exploited":false,"provenance":"source"}}