CVE-2021-22539
JSON

8.2high

Code execution in VSCode-bazel via malicious Bazel config files

Severity
8.2high CVSS:3.1 by Google
Exploit likelihood
0.31% (higher than 25% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Google

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

Product or packageVersionsReported by
Google LLC VSCode-Bazelfrom unspecified up to 0.4.0CVE List
google bazelfrom 0.1.0 before 0.4.1NVD

All scores

Google8.2high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H
NVD7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
NVD6.8medium CVSS:2.0AV:N/AC:M/Au:N/C:P/I:P/A:P

Classification

What each source says

CVE List

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.

NVD (es)

Un atacante puede colocar un archivo de configuración JSON diseñado en la carpeta del proyecto que apunta a un ejecutable personalizado. VScode-bazel permite que la ruta del espacio de trabajo a los archivos lint * .bzl sean establecidos por medio de este archivo de configuración. Como tal, el atacante es capaz de ejecutar cualquier ejecutable en el sistema a través de vscode-bazel. Recomendamos actualizar a la versión 0.4.1 o por arriba

References

Sources

SourceRecordLicence
CVE ListCVE-2021-22539 changed 2024-09-17CVE Terms of Use
NVDCVE-2021-22539 changed 2026-06-17Public domain