CVE-2019-16765
What it is
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.
At a glance
- Exploitability
- Can be exploited locally on the machine without logging in, but needs a user to act. High risk of data exposure, data tampering.
- Exploit odds
- 5.4% chance of exploitation in the next 30 days (EPSS).
- Fix
- A patch, advisory or fixed version is referenced. Upgrade or apply it.
Timeline
- PublishedDisclosed publicly on CVE.org and NVD
- Last updatedMost recent change to the record
Why it ranks here
- Exploited in the wild: no, CISA does not list it.
- Exploit odds: 5.4% in the next 30 days (EPSS).
- Severity: 7.4 HIGH (CVSS).
- Fix: a patch or advisory is linked.
Details
- Published
- Last modified
- Exploit probability
- 5.4% · EPSS, next 30 days
- Weakness
- CWE-22 · Path traversal
- Record status
- Modified
Affected
- Microsoft Codeql < 1.0.1
Attack profile CVSS 3.1 · 7.4
- Attack vector
- Local
- Complexity
- High
- Privileges needed
- None
- User interaction
- Required
- Scope
- Changed
- Confidentiality
- High
- Integrity
- High
- Availability
- None
Raw vector
CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N
Is it in your code?
Hand this to your coding agent. It searches your project for the affected products and checks versions. Nothing leaves your machine.
Read https://cve-list.com/agent/cve/CVE-2019-16765.md and follow it. Check whether this project is affected by CVE-2019-16765. Read only. Don't change anything and don't upload my code. Tell me yes, no or not sure, with the file as proof.
Fix and advisories
- https://github.com/github/vscode-codeql/pull/174
- https://github.com/github/vscode-codeql/security/advisories/GHSA-wf4x-8mpj-r42q
- https://github.com/github/vscode-codeql/pull/174
- https://github.com/github/vscode-codeql/security/advisories/GHSA-wf4x-8mpj-r42q
References
- https://github.com/github/vscode-codeql/blob/v1.0.1/CHANGELOG.md
- https://github.com/github/vscode-codeql/pull/174
- https://github.com/github/vscode-codeql/security/advisories/GHSA-wf4x-8mpj-r42q
- https://github.com/github/vscode-codeql/blob/v1.0.1/CHANGELOG.md
- https://github.com/github/vscode-codeql/pull/174
- https://github.com/github/vscode-codeql/security/advisories/GHSA-wf4x-8mpj-r42q