Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2019-16765

HIGH 7.4EPSS 93%

If an attacker can get a user to open a specially prepared directory tree as a workspace in Visual Studio Code with the…

Mitigation

  • Upgrade vscode-codeql to 1.0.1 or later.
  • Vendor workaround: 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.

Who should check

  • Anyone running github vscode-codeql >= < 1.0.1, < 1.0.1

Vulnerability facts

Affected
github vscode-codeql >= < 1.0.1, < 1.0.1
Fixed in
github vscode-codeql 1.0.1, github vscode-codeql 1.0.1
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
7.4 (v3.1, CNA)CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Local
  • Attack complexity: High
  • Privileges required: None
  • User interaction: Required
  • Scope: Changed (impact reaches other components)
  • Confidentiality impact: High
  • Integrity impact: High
  • Availability impact: None
EPSS
5.36% chance of exploitation in 30 days (percentile 93, 2026-11-26)
CWE
CWE-250, CWE-22
Published
Modified

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 and fixed versions

Package / productAffectedFixedSource
github vscode-codeql>= < 1.0.1, < 1.0.1—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2019-16765. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2019-16765.md
Affected: github vscode-codeql >= < 1.0.1, < 1.0.1
Fixed in: github vscode-codeql 1.0.1, github vscode-codeql 1.0.1

Steps:
1. Search this machine and project for github vscode-codeql: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2019-16765 being exploited?

There is no confirmed exploitation: CVE-2019-16765 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 5.36% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2019-16765?

High: CVSS 7.4 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). A user has to take an action, such as opening a link, for the attack to work. The attack needs conditions outside the attacker's control, which makes it harder.

Which versions are affected by CVE-2019-16765?

github vscode-codeql >= < 1.0.1, < 1.0.1.

Is there a fix for CVE-2019-16765?

Yes. Fixed in github vscode-codeql 1.0.1, github vscode-codeql 1.0.1. Upgrade vscode-codeql to 1.0.1 or later. Vendor workaround: 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.

How do I check if I'm affected by CVE-2019-16765?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors