PT-2026-2315
CVE-2026-22812
·
Published
2026-01-12
·
Updated
2026-10-18
Description by
CVSS 2.0
10
HighMetricsAV:N/AC:L/Au:N/C:C/I:C/A:C
Name of the Vulnerable Software and Affected Versions
OpenCode versions prior to 1.0.216
Description
OpenCode, an open source AI coding agent, has an issue where it automatically starts an unauthenticated HTTP server. This allows any local process, or any website due to permissive CORS settings, to execute arbitrary shell commands with the privileges of the user running the application. The vulnerability allows for remote code execution. The issue is related to a lack of authentication for a critical function.
The vulnerable endpoint is
/session/{id}/shell, where id is a session identifier. Exploitation involves sending a POST request to this endpoint without any authentication, enabling direct command execution.Recommendations
Update OpenCode to version 1.0.216 or later.
Exploitability
Exploit
Fix
Impacts
Researchers
Vendors
Affected products
Found an issue in the description? Have something to add? Feel free to write us 👾