CVE-2023-46248

HIGH

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.

CVSS 3.18.8
EPSS1.1%
Percentile65th
PatchUnknown
CVSS Vector — Plain English Remotely exploitable over the network, low complexity, low privileges required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
CWE Weakness Definitions
CWE-15: CWE-15
Related Attack Patterns (CAPEC)
CAPEC-13 Subverting Environment Variable Values
via CWE-15
CAPEC-76 Manipulating Web Input to File System Calls
via CWE-15
CAPEC-146 XML Schema Poisoning
via CWE-15
CAPEC-270 Modification of Registry Run Keys
via CWE-15
CAPEC-579 Replace Winlogon Helper DLL
via CWE-15
Show all 10
via CWE-15
via CWE-15
via CWE-15
via CWE-15
via CWE-15

Mapping is CWE-to-CAPEC per MITRE CAPEC 3.9.

◆ AI Analysis — automated analysis, not human-reviewed

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 →
Frequently Asked Questions
What is CVE-2023-46248?
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.
What is the CVSS score for CVE-2023-46248?
CVE-2023-46248 has CVSS 8.8 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H. EPSS: 1.1%.
Is CVE-2023-46248 actively exploited?
No confirmed active exploitation of CVE-2023-46248 as of 2026-09-25.
How do I remediate CVE-2023-46248?
Priority: IMMEDIATE.
What systems are affected by CVE-2023-46248?
CVE-2023-46248 affects Sourcegraph Cody.
Vulnerability Details
CVE IDCVE-2023-46248
BSIDBS-2023-GLOBAL-020796-H BreachSpider Global ID
CVSS VectorCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Published2023-10-31
Last Modified2026-06-17
ICS Relevance0%
Weakness (CWE)
SourceNVD
Official 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.

Source: NIST NVD / MITRE CVE Database

Attack Vector Analysis — CITED Relevance

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

Affected Products
VendorProductAffected Versions
Sourcegraph Cody ≥ 0.10.0, ≤ 0.14.0
Remediation

No official vendor advisory link on record. See the CVE record →

Threat Intelligence
● Threat Intelligence Validated: October 2026 | Threat Age: 1080 Days
CISA known-exploitedNot in KEV catalog
Public ExploitNot confirmed
PoC CodeNot confirmed
AI Enrichment Record — provenance & audit hash
Model/workspace/models/qwen2.5-coder-32b-instruct-bf16
ConfidenceHIGH
Enriched At2026-05-24
SHA-512 Audit Hashb7163ec25b1a7df89e894f3da44aa2f8934e8dc1e4ae4439a6faefc244a7f95df006598f29630894853702e6b73ad363cbb5b195fd90e5f8a0d700eef0b92606
Related CVEs affecting Sourcegraph
CVE-2022-23642 8.8 Sourcegraph is a code search and navigation engine. Sourcegraph prior to vers... CVE-2022-41942 7.8 Sourcegraph is a code intelligence platform. In versions prior to 4.1.0 a com... CVE-2022-41943 7.2 sourcegraph is a code intelligence platform. As a site admin it was possible ... CVE-2022-29171 7.2 Sourcegraph is a fast and featureful code search and navigation engine. Versi... CVE-2021-43823 6.5 Sourcegraph is a code search and navigation engine. Sourcegraph prior to vers...
View all Sourcegraph CVEs →

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 →