If an attacker can get a user to open a specially prepared directory tree as a workspace in Visual Studio Code with the CodeQL extension active, arbitrary code of the attacker's choosing may be executed on the user's behalf
Published Nov 25, 2019
7.8
HIGHCVSS 3.1
EPSS 5.36%
Description
If an attacker can get a user to open a specially prepared directory tree as a workspace in Visual Studio Code with the CodeQL extension active, arbitrary code of the attacker's choosing may be executed on the user's behalf. This is fixed in version 1.0.1 of the extension. Users should upgrade to this version using Visual Studio Code Marketplace's upgrade mechanism. After upgrading, the codeQL.cli.executablePath setting can only be set in the per-user settings, and not in the per-workspace settings. More information about VS Code settings can be found here.
Affected products
-
- Version < 1.0.1StatusaffectedConstraints<1.0.1
- Version
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| GitHub | Vscode-Codeql | n/a |
|
No data.
No Red Hat product state for this CVE.
No package ranges for this CVE.
Remediation
Vendor solution
Manually review the workspace settings for any workspace obtained from an external source. These settings can be found in the .vscode/settings.json file within the workspace directory. Remove the configuration values for the codeQL.cli.executablePath, codeQL.cli.owner, and codeQL.cli.repository settings for the workspace.
If you wish to use the codeQL.cli.executablePath setting to indicate the location of a CodeQL CLI executable, then move this to your user settings, and check that you trust the configured path. You can access the user settings by choosing Preferences: Open User Settings from the Command Palette.
Metrics
No CVSS v4.0 score for this CVE.
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
1 other source (GitHub) ▾
CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N
No CVSS v3.0 score for this CVE.
AV:N/AC:M/Au:N/C:P/I:P/A:P
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 3, 2026.
Score over time
2021–2026- EPSS v1
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v1
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (25 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 3, 2026 | 5.36% (0.05364) | 92.41th | v5 (v2026.06.15) |
| Jun 15, 2026 | 4.73% (0.04731) | 90.66th | v5 (v2026.06.15) |
| Mar 17, 2025 | 0.69% (0.00692) | 70.14th | v4 (v2025.03.14) |
| Dec 12, 2024 | 0.11% (0.00112) | 46.17th | v3 (v2023.03.01) |
| May 7, 2024 | 0.11% (0.00112) | 44.20th | v3 (v2023.03.01) |
| Apr 7, 2024 | 0.12% (0.00117) | 45.04th | v3 (v2023.03.01) |
| Mar 20, 2024 | 0.15% (0.00146) | 49.55th | v3 (v2023.03.01) |
| Mar 5, 2024 | 0.14% (0.00137) | 48.14th | v3 (v2023.03.01) |
| Feb 20, 2024 | 0.16% (0.00164) | 51.81th | v3 (v2023.03.01) |
| Feb 4, 2024 | 0.12% (0.00118) | 45.82th | v3 (v2023.03.01) |
| Jan 20, 2024 | 0.16% (0.00163) | 52.98th | v3 (v2023.03.01) |
| Dec 2, 2023 | 0.14% (0.00142) | 49.71th | v3 (v2023.03.01) |
| Sep 14, 2023 | 0.12% (0.00122) | 45.88th | v3 (v2023.03.01) |
| Aug 27, 2023 | 0.10% (0.00102) | 40.99th | v3 (v2023.03.01) |
| Jul 25, 2023 | 0.13% (0.00134) | 47.66th | v3 (v2023.03.01) |
| May 17, 2023 | 0.12% (0.00117) | 44.32th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.10% (0.00103) | 40.67th | v3 (v2023.03.01) |
| Mar 6, 2023 | 4.00% (0.04004) | 85.95th | v2 (v2022.01.01) |
| Nov 3, 2022 | 4.00% (0.04004) | 85.55th | v2 (v2022.01.01) |
| Apr 1, 2022 | 3.68% (0.03678) | 83.48th | v2 (v2022.01.01) |
| Feb 4, 2022 | 10.70% (0.10699) | 87.73th | v2 (v2022.01.01) |
| Feb 3, 2022 | 30.10% (0.30098) | 96.74th | v1 |
| Jan 6, 2022 | 30.10% (0.30098) | 96.70th | v1 |
| Sep 1, 2021 | 8.76% (0.08756) | 93.70th | v1 |
| Apr 14, 2021 | 8.76% (0.08756) | 0.00th | v1 |
References (3)
- https://github.com/github/vscode-codeql/blob/v1.0.1/CHANGELOG.md x_refsource_MISCRelease Notes
- https://github.com/github/vscode-codeql/pull/174 x_refsource_MISCPatchThird Party Advisory
- https://github.com/github/vscode-codeql/security/advisories/GHSA-wf4x-8mpj-r42q x_refsource_CONFIRMThird Party Advisory
| Link | Providers | Tags |
|---|---|---|
| https://github.com/github/vscode-codeql/blob/v1.0.1/CHANGELOG.md | x_refsource_MISCRelease Notes | |
| https://github.com/github/vscode-codeql/pull/174 | x_refsource_MISCPatchThird Party Advisory | |
| https://github.com/github/vscode-codeql/security/advisories/GHSA-wf4x-8mpj-r42q | x_refsource_CONFIRMThird Party Advisory |
Change history (0)
No recorded changes yet.