Skip to content

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

HighCVSS 7.8 EPSS 0.31%
Published
Updated
Exploit status
No public exploit known

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.

Upgrade path

2 packages: 2 fixed.

PackageAffectedFixed inStatus
Google Bazel >= 0.1.0, < 0.4.1 0.4.1 Fixed
Google VSCode-Bazel <= 0.4.0 after 0.4.0 Fixed

Affected products

ProductAffected versionsFixed in
Google Bazel >= 0.1.0, < 0.4.1 0.4.1
Google VSCode-Bazel <= 0.4.0 No fix listed

References