{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2021-22539","id":"CVE-2021-22539","title":"Code execution in VSCode-bazel via malicious Bazel config files","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.","descriptionLong":"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.","published":"2021-04-16T10:15:12.912Z","updated":"2026-10-20T10:53:36.711136647Z","reserved":"2021-01-05T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"Google","metric":{"version":"3.1","score":8.2,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H","rating":"high","source":"Google"},"metrics":[{"version":"3.1","score":8.2,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H","rating":"high","source":"Google"},{"version":"3.1","score":8.2,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H","rating":"high","source":"google.com"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"OSV"},{"version":"2.0","score":6.8,"vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","rating":"medium","source":"NVD"}],"rating":"high","products":["Google LLC VSCode-Bazel"],"affectedProducts":[{"vendor":"Google LLC","product":"VSCode-Bazel","defaultStatus":null,"versions":[{"lessThanOrEqual":"0.4.0","status":"affected","version":"unspecified","versionType":"custom"}],"platforms":[]}],"packages":[],"cwes":["CWE-73","CWE-668"],"aliases":["GHSA-2rcw-j8x4-hgcv"],"references":[{"url":"https://github.com/bazelbuild/vscode-bazel/security/advisories/GHSA-2rcw-j8x4-hgcv","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","advisory"]},{"url":"https://github.com/bazelbuild/vscode-bazel-ghsa-2rcw-j8x4-hgcv/pull/1","tags":["x_refsource_MISC","x_transferred","Broken Link","fix"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.0031,"epssPercentile":0.24371,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2021-22539","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-22539","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2021-22539","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2021-22539","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}