CVE & CISA-KEV Catalog

CVE-2021-22539

HIGH
8.2
CVSS v3
NVD

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.

How to fix

Remediation Available
bazelNVD
Affected:>= 0.1.0, < 0.4.1Fixed in:0.4.1CVE-2021-22539derived from NVD

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorLocal
Attack ComplexityLow
Privileges RequiredLow
User InteractionRequired
ScopeChanged

Impact

ConfidentialityHigh
IntegrityHigh
AvailabilityHigh

CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H

Exploit Intelligence

0.31%probability of exploitation in 30 days
23rdpercentile

Low risk: more likely to be exploited than 23% of all known CVEs.

References

Third-Party Advisory1
Other references1

Related Vulnerabilities

Other CWE-73 (External Control of File Name or Path) vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2022-39952Critical9.8100%-Fix
CVE-2024-8517Critical9.895%-Fix
CVE-2023-4634Critical9.883%-Fix
CVE-2018-17246Critical9.882%-Fix
CVE-2024-43451Medium6.582%KEVFix
CVE-2025-33053High8.882%KEVFix
Embed a live status badge for CVE-2021-22539
CVE-2021-22539 severity badge

Markdown

[![CVE-2021-22539](https://tridentstack.com/cve/badge/CVE-2021-22539.svg)](https://tridentstack.com/cve/CVE-2021-22539)

HTML

<a href="https://tridentstack.com/cve/CVE-2021-22539"><img src="https://tridentstack.com/cve/badge/CVE-2021-22539.svg" alt="CVE-2021-22539"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

Start free

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2024-11-21.