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 i...
Affects 1 product across 1 vendor.
Show all 10
Mapping is CWE-to-CAPEC per MITRE CAPEC 3.9.
The Cody AI VSCode extension versions 0.10.0 through 0.14.0 are vulnerable to Remote Code Execution (RCE) due to an insecure handling of the .vscode/cody.json configuration file. An attacker can modify this file to execute arbitrary commands on the user's machine.
BSID: BS-2023-GLOBAL-020796-H • Model: /workspace/models/qwen2.5-coder-32b-instruct-bf16 • Confidence: HIGH
Is this CVE in your environment?
BreachSpider monitors your ICS/OT environment for vulnerabilities like this one. No agents or network access required. Free to start.
Check My Environment →What is CVE-2023-46248?
What is the CVSS score for CVE-2023-46248?
Is CVE-2023-46248 actively exploited?
How do I remediate CVE-2023-46248?
What systems are affected by CVE-2023-46248?
| CVE ID | CVE-2023-46248 |
|---|---|
| BSID | BS-2023-GLOBAL-020796-H BreachSpider Global ID |
| CVSS Vector | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| Published | 2023-10-31 |
| Last Modified | 2026-06-17 |
| ICS Relevance | 0% |
| Weakness (CWE) | |
| Source | NVD |
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.
Source: NIST NVD / MITRE CVE Database
An attacker in control of a malicious repository can modify the .vscode/cody.json file to include malicious commands. When a user with the Cody AI VSCode extension installed opens this repository and runs the modified commands, the attacker's code is executed on the user's system.
Exploitation Likelihood: HIGH
| Vendor | Product | Affected Versions |
|---|---|---|
| Sourcegraph | Cody | ≥ 0.10.0, ≤ 0.14.0 |
No official vendor advisory link on record. See the CVE record →
| CISA known-exploited | Not in KEV catalog |
|---|---|
| Public Exploit | Not confirmed |
| PoC Code | Not confirmed |
AI Enrichment Record — provenance & audit hash
| Model | /workspace/models/qwen2.5-coder-32b-instruct-bf16 |
|---|---|
| Confidence | HIGH |
| Enriched At | 2026-05-24 |
| SHA-512 Audit Hash | b7163ec25b1a7df89e894f3da44aa2f8934e8dc1e4ae4439a6faefc244a7f95df006598f29630894853702e6b73ad363cbb5b195fd90e5f8a0d700eef0b92606 |
ICS/OT Vulnerability Intelligence for Your Environment
BreachSpider tracks 384,000+ CVEs and matches them to your ICS/OT assets by exact version, with AI analysis, NERC CIP mapping, and vendor PSIRT contacts.
Create a free account →