What’s Vulnerable › Vulnerabilities

CVE-2021-22539: Code execution in VSCode-bazel via malicious Bazel config files

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

How to fix

Upgrade to a fixed version: Google LLC Bazel 0.4.1. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2021-22539 or the next vulnerability affects your stack