8.2

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

Modified
Published 16-04-2021Last modified 17-09-2024

Vulnerability summary

CVE-2021-22539 is a high (CVSS 8.2) External Control of File Name or Path vulnerability in google llc vscode-bazel. EPSS estimates a 0.31% chance of exploitation in the next 30 days, higher than 25.7% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 8.2, local access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
8.2/10
010
High · v3.1 (CVE.org)
EPSS score
0.31%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Timeline

  1. 16-04-2021
    PublishedVulnerability first disclosed.
  2. 17-09-2024
    Last modifiedVulnerability information updated.

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.

CVSS metrics

3 scores · 2 sources · 2 versions

EPSS trend

Probability

0.31%

Chance of exploitation in the next 30 days

Percentile

26%

Versus all other CVEs

30-day change

No change 0.00 pp

From 0.31% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: local access, low-privilege account, user interaction (CVSS vector). Other conditions: not stated in public data.

Google1 product
Google llc1 product

2 vendors · 2 products

References

2 links