Vulnerability 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.
CVSS Score
HIGH
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Microsoft | Codeql | < 1.0.1 |
Related Weaknesses (CWE)
References
- https://github.com/github/vscode-codeql/blob/v1.0.1/CHANGELOG.mdRelease Notes
- https://github.com/github/vscode-codeql/pull/174PatchThird Party Advisory
- https://github.com/github/vscode-codeql/security/advisories/GHSA-wf4x-8mpj-r42qThird Party Advisory
- https://github.com/github/vscode-codeql/blob/v1.0.1/CHANGELOG.mdRelease Notes
- https://github.com/github/vscode-codeql/pull/174PatchThird Party Advisory
- https://github.com/github/vscode-codeql/security/advisories/GHSA-wf4x-8mpj-r42qThird Party Advisory
FAQ
What is CVE-2019-16765?
CVE-2019-16765 is a vulnerability with a CVSS score of 7.4 (HIGH). 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 execut...
How severe is CVE-2019-16765?
CVE-2019-16765 has been rated HIGH with a CVSS base score of 7.4/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2019-16765?
Check the references section above for vendor advisories and patch information. Affected products include: Microsoft Codeql.