CVE-2023-46248
Last modified
CVE-2023-46248 is a high-severity vulnerability rated 8.8/10 on the CVSS scale. 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. EPSS estimates a 1.09% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Sourcegraph | Cody | >= 0.10.0, <= 0.14.0 |
References
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2023-46248?
How severe is CVE-2023-46248?
How do I fix CVE-2023-46248?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2023
- CVE-2023-46242XWiki Platform is a generic wiki platform offering runtime s…8.8
- CVE-2023-46243XWiki Platform is a generic wiki platform offering runtime s…8.8
- CVE-2023-46244XWiki Platform is a generic wiki platform offering runtime s…8.8
- CVE-2023-46245Kimai is a web-based multi-user time-tracking application. V…7.2
- CVE-2023-46246Vim is an improved version of the good old UNIX editor Vi. H…5.5
- CVE-2023-46247Vyper is a Pythonic Smart Contract Language for the Ethereum…7.5
- CVE-2023-46249authentik is an open-source Identity Provider. Prior to vers…9.8
- CVE-2023-4625Improper Restriction of Excessive Authentication Attempts vu…5.3
- CVE-2023-46250pypdf is a free and open-source pure-python PDF library. An …5.5
- CVE-2023-46251 MyBB is a free and open source forum software. Custom MyCod…6.1
- CVE-2023-46252Squidex is an open source headless CMS and content managemen…6.1
- CVE-2023-46253Squidex is an open source headless CMS and content managemen…7.2
Are you affected by CVE-2023-46248?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
