CVE-2021-22539
published high CVSS 3.1 · 8.2Code execution in VSCode-bazel via malicious Bazel config files
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Google LLC | — | VSCode-Bazelunspecified through 0.4.0 | Affected | Not stated |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 8.2 / 10
- Severity
- high
- Provider
- Google · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Google LLC | VSCode-Bazel | unspecified through 0.4.0 (affected · custom) | Google · cna |
Weaknesses
1- CWE-73 CWE-73 External Control of File Name or Path
References
2Provider assertions
2Google · cna
Code execution in VSCode-bazel via malicious Bazel config files
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 28e61914e6f2997d3e1282b893f784636a7eec0c9576d4d7b7108bbe32d62bec
- Ingested
- 23 Sep 2026, 07:52:45 UTC
- Source record
- Official CVE record