OpenCode Flaw Lets Malicious MCP Servers Execute Code During Sign-In on Windows and WSL
Overview
A security flaw in the OpenCode AI coding agent has been discovered, allowing malicious or compromised MCP servers to execute code on developers' Windows or WSL systems during sign-in. This vulnerability is particularly concerning because it operates with the developer's own access rights, potentially leading to unauthorized actions on their machines. The issue was identified by Anomaly, the company behind OpenCode, and a fix was rolled out in version 1.18.33 on September 21, 2023. Developers using OpenCode should ensure they update to this version promptly to protect themselves from possible exploitation. This incident underscores the risks associated with third-party integrations in development environments.
Key Takeaways
- Affected Systems: OpenCode AI coding agent, Windows, WSL
- Action Required: Update to OpenCode version 1.
- Timeline: Disclosed on September 21, 2023
Original Article Summary
A flaw in the OpenCode AI coding agent allowed a malicious or hijacked MCP server to run code on a developer's Windows or WSL machine when the developer signed in. OpenCode connects to MCP (Model Context Protocol) servers to add outside tools, and such code would run with the developer's own access. Anomaly, the company behind OpenCode, fixed the flaw in version 1.18.33 on September
Impact
OpenCode AI coding agent, Windows, WSL
Exploitation Status
No active exploitation has been reported at this time. However, organizations should still apply patches promptly as proof-of-concept code may exist.
Timeline
Disclosed on September 21, 2023
Remediation
Update to OpenCode version 1.18.33
Additional Information
This threat intelligence is aggregated from trusted cybersecurity sources. For the most up-to-date information, technical details, and official vendor guidance, please refer to the original article linked below.
Related Topics: This incident relates to Windows, Microsoft, Vulnerability, and 1 more.