Skip to main content
← All vulnerabilities
CVE-2021-22539

Code execution in VSCode-bazel via malicious Bazel config files

Published
Last modified
published
Not listed in CISA KEV
None on Exploit-DB, Metasploit or GitHub

Summary

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.

Timeline

  1. CVE published
  2. Record last updated

Affected versions

  • Google LLC VSCode-Bazel

    through 0.4.0

References 2

GitHub · bazelbuild/vscode-bazel

GitHub · bazelbuild/vscode-bazel-ghsa-2rcw-j8x4-hgcv