CVE-2021-22539

Code execution in VSCode-bazel via malicious Bazel config files

Published Apr 16, 2021 CVSS 3.1 · 8.2 High EPSS < 1% KEV · Not listed
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.

Remediation

Vendor Solution

Upgrade vscode-bazel to version 0.4.1 or above

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2021-9680 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.
History

No history.

Weaknesses

Sources

Status
PUBLISHED
Assigner
Google
Published
Updated
Sep 17, 2024, 1:46 AM
Reserved
Jan 5, 2021, 12:00 AM
Status
Modified
Published
Apr 16, 2021, 11:15 AM
Modified
Jun 17, 2026, 3:37 AM