Vulnerability · Published Apr 16, 2021 · Assigned by Google
CVE-2021-22539Code execution in VSCode-bazel via malicious Bazel config files
High 8.2
In plain English
A high-severity security flaw in VSCode-Bazel from Google LLC. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 24% of all known vulnerabilities).
Severity (CVSS 3.1)8.2High
Exploit odds (30 days)0.3%top 76.0% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known
Official description
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.
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Google LLC | VSCode-Bazel | unspecified – through 0.4.0 |
Weakness: CWE-73 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H