CVE-2023-46248
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.
Scoring
- Severity
- CRITICAL
- CVSS base score
- 9.1
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H
- EPSS probability
- 3.28%
- CWE
- CWE-15
- Published
- 2023-10-31
- Last modified
- 2026-03-13
Affected products
- sourcegraph cody
Weakness type
Related vulnerabilities
- CVE-2024-4326 — Remote Code Execution via `/apply_settings` and `/execute_code` in parisneo/lollms-webui
- CVE-2026-6973 — An Improper Input Validation in Ivanti EPMM before versions 12.6.1.1, 12.7.0.1, and 12.8.0.1 allows a remotely authentic
- CVE-2021-38453 — AUVESY Versiondog
- CVE-2024-39800 — Multiple external config control vulnerabilities exists in the openvpn.cgi openvpn_server_setup() functionality of Wavli
- CVE-2024-39799 — Multiple external config control vulnerabilities exists in the openvpn.cgi openvpn_server_setup() functionality of Wavli
- CVE-2024-39798 — Multiple external config control vulnerabilities exists in the openvpn.cgi openvpn_server_setup() functionality of Wavli
- CVE-2024-39795 — Multiple external config control vulnerabilities exist in the nas.cgi set_nas() proftpd functionality of Wavlink AC3000
- CVE-2024-39794 — Multiple external config control vulnerabilities exist in the nas.cgi set_nas() proftpd functionality of Wavlink AC3000