{"schemaVersion":3,"id":"CVE-2019-16765","aliases":[],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2019-11-25T17:41:17.000Z","modified":"2024-08-05T01:24:47.950Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.8,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":7.4,"severity":"high","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":6.8,"severity":"medium","vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.05364,"percentile":0.92576,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.05364},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.0501,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.0501,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.05364,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.05364,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.05364,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.05364,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.05364,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.05364,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.05364,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.05364,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.05364,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.05364,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.05364,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.05364,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.05364,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.05364,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.05364,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.05364,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.05364,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.05364,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.05364,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.05364,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.05364,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.05364,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.05364,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.05364,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.05364,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.05364,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.05364,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.05364,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.05364,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.05364,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.05364,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.05364,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.05364,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.05364,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.05364,"percentile":0.92576}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.05364,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.05364,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.05364,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.05364,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.05364,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.05364,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.05364,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.05364,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.05364,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.05364,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.05364,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.05364,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.05364,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.05364,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.05364,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.05364,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.05364,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.05364,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.05364,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.05364,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.05364,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.05364,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.05364,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.05364,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.05364,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.05364,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.05364,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.05364,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.05364,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.05364,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.05364,"percentile":0.92576}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","description":"The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/22.html"},{"id":"CWE-250","name":"Execution with Unnecessary Privileges","description":"The product performs an operation at a privilege level that is higher than the minimum level required, which creates new weaknesses or amplifies the consequences of other weaknesses.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/250.html"}],"affected":[{"vendor":"github","product":"vscode-codeql","name":"vscode-codeql","label":"vscode-codeql","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ < 1.0.1, < 1.0.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ < 1.0.1, < 1.0.1","eol":null,"hubHref":"/vendor/github/vscode-codeql"},{"vendor":"microsoft","product":"codeql","name":"codeql","label":"codeql","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 1.0.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.0.1","eol":null,"hubHref":"/vendor/microsoft/codeql"}],"affectedCount":2,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/github/vscode-codeql/security/advisories/GHSA-wf4x-8mpj-r42q","label":"github.com/github/vscode-codeql/security/advisories/GHSA-wf4x-8mpj-r42q","hostname":"github.com","tags":["X Refsource CONFIRM","Third Party Advisory"]},{"url":"https://github.com/github/vscode-codeql/pull/174","label":"github.com/github/vscode-codeql/pull/174","hostname":"github.com","tags":["X Refsource MISC","Patch","Third Party Advisory"]},{"url":"https://github.com/github/vscode-codeql/blob/v1.0.1/CHANGELOG.md","label":"github.com/github/vscode-codeql/blob/v1.0.1/CHANGELOG.md","hostname":"github.com","tags":["X Refsource MISC","Release Notes"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2019-11-25T17:41:17.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-05T01:24:47.950Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":32,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T01:04:04.498Z","stale":false,"partial":false}}