Skip to content
CriticalVulnerability

CVE-2023-46248: Cody AI VSCode extension remote code execution through malicious cody.json

Identifier
CVE-2023-46248
Published
Record updated
View JSON
Fixed in
The source references a patch, a mitigation or a vendor advisory.
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
1.3%Estimated probability that this CVE is exploited in the next 30 days, from the FIRST Exploit Prediction Scoring System. Read on .

Summary

The Cody AI VSCode extension, versions 0.10.0 through 0.14.0, is vulnerable to Remote Code Execution under certain conditions. An attacker controlling a malicious repository can modify `.vscode/cody.json` to overwrite Cody commands, and running a command such as /explain or /doc in that repository can allow arbitrary code execution, even when VS Code Workspace Trust blocks code execution.

Mitigation

Fixed in version 0.14.1 of the Cody VSCode extension. If users cannot promptly upgrade, they should not open any untrusted repositories with the Cody extension loaded.