CVE-2021-22539

Code execution in VSCode-bazel via malicious Bazel config files

State
Published
Severity
8.2 High
Published
Apr 16, 2021
Updated
Sep 17, 2024
Reserved
Jan 5, 2021

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.18.2 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:HGoogle

Weaknesses

  • CWE-73 External Control of File Name or Path

Affected Products

ProductVersions
VSCode-BazelGoogle LLC
  • 0.4.0 and earlierAffected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.