# CVE-2023-46248: Overwrite of builtin Cody commands facilitates RCE

- Severity: Critical 9.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.26%, higher than 70% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2023-10-31T15:11:46.707Z
- Modified: 2026-06-17T06:30:30.887Z
- Weaknesses: CWE-15
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- sourcegraph cody: >= 0.10.0, < 0.14.1; from 0.10.0 up to 0.14.0

## Every score

- GitHub_M: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/sourcegraph/cody/pull/1414> (exploit)
- <https://github.com/sourcegraph/cody/security/advisories/GHSA-8wmq-fwv7-xmwq> (vendor-advisory)

## Sources

- CVE List: [CVE-2023-46248](https://www.cve.org/CVERecord?id=CVE-2023-46248), CVE Terms of Use, modified 2024-09-05
- NVD: [CVE-2023-46248](https://nvd.nist.gov/vuln/detail/CVE-2023-46248), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-46248 · Whole record: https://cve.day/CVE-2023-46248.json · Rebuilt by cve.day 2026-11-25T22:58:29.868Z
