CVE-2023-46248
highpriority · track · 35EPSS 0.011 · 65 %ileEUUSEPSS · scored 2026-10-26
Cody is an artificial intelligence (AI) coding assistant. The Cody AI VSCode extension versions 0.10.0 through 0.14.0 are vulnerable to Remote Code Execution under certain conditions. An attacker in control of a malicious repository could modify the Cody configuration file `.vscode/cody.json` and overwrite Cody commands. If a user with the extension installed opens this malicious repository and runs a Cody command such as /explain or /doc, this could allow arbitrary code execution on the user's machine. The vulnerability is rated as critical severity, but with low exploitability. It requires the user to have a malicious repository loaded and execute the overwritten command in VS Code. The issue is exploitable regardless of the user blocking code execution on a repository through VS Code Workspace Trust. The issue was found during a regular 3rd party penetration test. The maintainers of Cody do not have evidence of open source repositories having malicious `.vscode/cody.json` files to exploit this vulnerability. The issue is fixed in version 0.14.1 of the Cody VSCode extension. In case users can't promptly upgrade, they should not open any untrusted repositories with the Cody extension loaded.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · high–critical · 8.1–9.1
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (2)
Products and version ranges known to be affected.
also known as (2)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (8)
External citations — patches, advisories, analysis.
- https://cxsecurity.com/cveshow/CVE-2023-46248/cnnvd
- https://github.com/sourcegraph/cody/pull/1414cnnvd
- https://github.com/sourcegraph/cody/releases/tag/vscode-v0.14.2Patchcnnvd
- https://github.com/sourcegraph/cody/security/advisories/GHSA-8wmq-fwv7-xmwqcnnvd
- https://github.com/sourcegraph/cody/pull/1414enisa_euvd
- https://github.com/sourcegraph/cody/security/advisories/GHSA-8wmq-fwv7-xmwqenisa_euvd
- https://github.com/sourcegraph/cody/pull/1414Exploitnvd
- https://github.com/sourcegraph/cody/security/advisories/GHSA-8wmq-fwv7-xmwqVendor Advisorynvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan