{"id":"CVE-2021-22539","aliases":["CVE-2021-22539"],"related":[],"kind":"vulnerability","state":"published","title":"Code execution in VSCode-bazel via malicious Bazel config files","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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"Un atacante puede colocar un archivo de configuración JSON diseñado en la carpeta del proyecto que apunta a un ejecutable personalizado.&#xa0;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.&#xa0;Como tal, el atacante es capaz de ejecutar cualquier ejecutable en el sistema a través de vscode-bazel.&#xa0;Recomendamos actualizar a la versión 0.4.1 o por arriba","source":"nvd"}],"published":"2021-04-16T10:15:12.912Z","modified":"2026-06-17T03:37:24.203Z","severity":{"scorer":"Google","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H","score":8.2,"rating":"HIGH"},"severities":[{"scorer":"Google","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H","score":8.2,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","score":6.8,"rating":"MEDIUM"}],"cwes":["CWE-73","CWE-668"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","lastAffected":"0.4.0","status":"affected"}],"vendor":"Google LLC","product":"VSCode-Bazel","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"0.1.0","fixed":"0.4.1"}],"vendor":"google","product":"bazel","cpe":"cpe:2.3:a:google:bazel:*:*:*:*:*:visual_studio:*:*","source":"nvd"}],"references":[{"url":"https://github.com/bazelbuild/vscode-bazel/security/advisories/GHSA-2rcw-j8x4-hgcv","tags":["third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://github.com/bazelbuild/vscode-bazel-ghsa-2rcw-j8x4-hgcv/pull/1","tags":["broken-link","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]}],"credits":["RyotaK"],"assigner":"Google","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-22539","url":"https://www.cve.org/CVERecord?id=CVE-2021-22539","licence":"CVE Terms of Use","modified":"2024-09-17T01:46:31.592Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-22539","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-22539","licence":"Public domain","modified":"2026-06-17T03:37:24.203Z"}],"updatedAt":"2026-11-25T22:58:00.844Z","epss":{"score":0.0031,"percentile":0.25756,"date":"2026-12-01T12:00:22.000Z"}}