{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2021-22539","published":"2021-04-16T11:15:12.637000Z","last_modified":"2026-06-17T03:37:24.203000Z","status":"Modified","cvss":{"version":"3.1","score":7.8,"severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","source":"nvd@nist.gov","primary":true},"auth":true,"cwes":["CWE-73","CWE-668"],"cpes":[{"criteria":"cpe:2.3:a:google:bazel:*:*:*:*:*:visual_studio:*:*","part":"a","vendor":"google","product":"bazel","version_start_including":"0.1.0","version_end_excluding":"0.4.1"}],"cpes_truncated":false,"vendors":["google"],"products":["google/bazel"],"epss":{"score":0.0031,"percentile":0.25756,"date":"2026-12-01","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[],"severity":"high","priority_score":47,"links":{"html_es":"/es/cve/CVE-2021-22539/","html_en":"/en/cve/CVE-2021-22539/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-22539","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-22539"},"untrusted":{"vendor_name":"Google","product_name":"Bazel","desc_en":"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":[{"untrusted_vendor":"Google LLC","untrusted_product":"VSCode-Bazel","versions":[]}],"references":[{"url":"https://github.com/bazelbuild/vscode-bazel-ghsa-2rcw-j8x4-hgcv/pull/1","tags":["Broken Link"]},{"url":"https://github.com/bazelbuild/vscode-bazel/security/advisories/GHSA-2rcw-j8x4-hgcv","tags":["Third Party Advisory"]}]}}