OpenCode 严重 RCE 漏洞悄然修复,未发通告
先了解这件事
Pillar Security 披露,周下载量约 300 万次的开源 AI 编码智能体 OpenCode 存在严重远程代码执行漏洞,影响 Windows 和 WSL 上的 1.0.137 至 1.18.32 版本,建议评分 9.8/10。开发者运行 opencode mcp auth 发起登录时,其已添加的远程 MCP 服务器若被攻击者控制或劫持,可在 MCP OAuth 认证过程中把发现文档里自由格式的 authorization_endpoint 字段未经转义拼入 PowerShell 命令,以开发者权限执行任意代码,无需额外用户交互。厂商已在 1.18.33 版本修复,据 Forkast 该版本于 9 月 28 日发布,但补丁以重构浏览器启动代码的名义推出,未发布安全通告也未申请 CVE,研究者警告常规漏洞扫描器和依赖告警无法识别仍需升级的安装。Pillar Security 后续还披露,MCP 官方调试工具 MCP Inspector 存在同类高危漏洞,根因是 open 包 11.0.0 之前的版本会把服务器自选的 authorization_endpoint 未转义地放入 PowerShell。
AI 根据报道生成 · 24 天前更新
故事线
- · 5篇报道· 关注度45
OpenCode 严重 RCE 漏洞悄然修复,未发通告本事件
- · 1篇报道· 关注度42opencode OAuth 缺陷与 Copilot CVE-2026-103572 披露
事件进展
- · 1篇报道MCP Inspector 远程代码执行漏洞披露
- · 4篇报道OpenCode 静默修复严重 RCE 漏洞未发公告
后续时间线
- Pillar Security精选检视 Inspector:MCP 官方调试工具中的远程代码执行漏洞
Pillar Security 披露 MCP 官方调试工具 MCP Inspector 存在高危远程代码执行漏洞。攻击者控制的远程 MCP 服务器可在 OAuth 认证过程中于开发者的 Windows 或 WSL 机器上执行任意代码,无需额外用户交互,因为自动打开链接在交互式终端中默认为开启。根因是 open 包 11.0.0 之前的版本会把服务器自选的 authorization_endpoint 未转义地放入 PowerShell 命令执行。维护者已接受报告并在 2026-10-21 发布的 Inspector 2.12.0 中修复,同时发布 GHSA-q978-78c7-phqw(CVSS 3.1 8.8)。建议升级到 open 11.0.0+、Inspector 2.12.0+、opencode 1.18.33+,并为传递依赖添加 override。
- Forkast精选OpenCode 严重 RCE 漏洞以“重构”名义修复,无 CVE 编号,扫描工具无法标记受影响安装
OpenCode 的严重远程代码执行漏洞已随 9 月 28 日发布的 1.18.33 版本修复,但补丁以重构浏览器启动代码的名义发布,没有安全公告也未申请 CVE,扫描器和依赖机器人无法匹配仍需升级的安装。据 Pillar Security 报告,漏洞影响 1.0.137 至 1.18.32 版本,远程 MCP 服务器可在 OAuth 握手时通过自选的 authorization_endpoint 字段把 URL 送入 Windows 和 WSL 上的 PowerShell,$(…) 子表达式被当作代码执行,无需额外用户交互,Pillar 评估 CVSS v3.1 为 9.8 Critical。真正封堵漏洞的是把 open 依赖升级到 11.0.4,仅靠 scheme 校验不够。据 Pillar 转述,Anomaly 回应称处理恶意 MCP 服务器一般超出其威胁模型。
- RedditReddit r/cybersecurity· 讨论OpenCode Flaw Lets Malicious MCP Servers Execute Code During Sign-In on Windows and WSL(新标签页打开原帖)
- The Hacker News精选OpenCode 漏洞可让恶意 MCP 服务器在 Windows 和 WSL 登录时执行代码
OpenCode AI 编码代理存在漏洞,恶意或被劫持的 MCP 服务器可在开发者登录时在其 Windows 或 WSL 机器上以开发者权限执行代码,发现方 Pillar Security 评为严重级别,建议评分 9.8/10。登录时 MCP 服务器提供的 OAuth 授权端点地址被未经转义拼入 PowerShell 命令,仅在开发者运行 opencode mcp auth 发起登录时触发,攻击者需控制开发者已添加的远程 MCP 服务器。Anomaly 于 9 月 28 日在 1.18.33 版本修复,受影响版本为 1.0.137 至 1.18.32;修复以浏览器启动代码重构名义发布,未申请 CVE 也未发布安全通告,扫描器不会标记仍有风险的构建,Anomaly 称用户配置的 MCP 服务器不在其信任边界内。macOS 和 Linux 不受影响。
- Infosecurity Magazine精选研究者警告 OpenCode 悄然修复严重 RCE 漏洞,用户面临风险
Pillar Security 披露开源 AI 编码工具 OpenCode 存在严重远程代码执行(RCE)漏洞,影响 1.0.137 至 1.18.32 版本,厂商已在 1.18.33 修复但未发布 CVE 或安全通告,研究者警告常规漏洞扫描器和依赖告警无法识别受影响安装。该漏洞影响 Windows 和 WSL,攻击者控制的 MCP 服务器可在 MCP OAuth 认证过程中在开发者机器上执行任意代码,无需额外用户交互。Pillar Security 于 2026 年 8 月底通过 GitHub Security Advisory 私下报告,OpenCode 母公司 Anomaly 确认收到报告但称恶意 MCP 服务器超出其威胁模型,9 月 28 日完成修复。
- 日期未标Pillar Security精选Open and Shut:opencode 通过 MCP OAuth 的远程代码执行漏洞
Pillar Security 披露,周下载量约 300 万次的开源 AI 编码智能体 opencode 存在远程代码执行漏洞,影响 Windows 和 WSL 上的 1.0.137 至 1.18.32 版本。攻击者控制的远程 MCP 服务器在 OAuth 认证握手中,把发现文档里自由格式的 authorization_endpoint 字段直接送入 shell,经 open 包交给 PowerShell 执行,无需额外用户交互,也不依赖提示注入,载荷是一个普通的 https URL。厂商 Anomaly 已在 2026-09-28 发布的 1.18.33 中修复,但将其作为重构发布,未发安全通告也未申请 CVE,漏洞扫描器和依赖告警不会标记受影响安装。
相关讨论
- 72 小时以前 · 不计入 72 小时的数字
- X@cubillas888 · cubillasSource: Pillar Security https://www.pillar.security/blog/open-and-shut-remote-code-execution-in-opencode-via-mcp-oauth…(新标签页打开原帖)
- X@cubillas888 · cubillasMCP server risk: Pillar Security says opencode on Windows and WSL could run an attacker's code during remote MCP OAuth…(新标签页打开原帖)
1 评论·10月28日 00:35采集
- X@JoshuaClarke · Joshua ClarkeTreat connecting to a remote MCP server like running untrusted code. Pillar Security reports that opencode on Windows a…(新标签页打开原帖)
3 赞 · 2 评论·10月27日 17:44采集
- X@BTHaberler · BT HaberlerOpenCode'da Kötü Amaçlı Uzak MCP Sunucusu Windows ve WSL'de Geliştiricinin Yetkileriyle PowerShell Komutu Çalıştırabili…(新标签页打开原帖)
- X@willvelida · Will Velida 🇺🇦Critical RCE flaw in OpenCode that affects users on Windows and WSL that allows attacker-controlled remote MCP servers…(新标签页打开原帖)
3 赞 · 1 评论·10月27日 17:44采集
- X@david_x_ai · David Gutierrez | EngConnecting an MCP server is installing software. Treat it that way. On Oct 19, Pillar Security disclosed a critical bu…(新标签页打开原帖)
17 赞 · 32 评论·10月29日 00:36采集
- X@siDandott · Alvif Sandana MahardikaOpenCode MCP sign-in flaw: a malicious server OAuth URL was passed unescaped to PowerShell on Windows/WSL, running arbi…(新标签页打开原帖)
1 赞 · 1 评论·10月28日 00:35采集
- X@ralbuque · Ricardo AlbuquerqueOpenCode (agente de código com IA) tinha RCE crítico no Windows/WSL: servidor MCP remoto malicioso executa código duran…(新标签页打开原帖)
31 赞 · 1 评论·10月27日 17:44采集
- X@hazemomier · Hazem OmierThe MCP server you sign in to picks the auth URL your client opens. opencode up to 1.18.32 passed it to open@10, which…(新标签页打开原帖)
- X@JNitterauer · Jim NitterauerOpenCode quietly patched a critical RCE in its MCP OAuth flow, with no CVE or advisory — Pillar Security says OpenCode…(新标签页打开原帖)
1 赞 · 1 评论·10月24日 03:35采集
- X@yeletech · YeleTech SecurityConnecting an AI agent to an outside MCP server means trusting whoever runs it. Pillar Security found an OpenCode flaw…(新标签页打开原帖)
1 赞·10月27日 17:44采集
- X@stretchcloud · Prasenjit SarkarOpenCode has over 218,000 GitHub stars and runs as an open agentic coding tool for thousands of developers. Pillar Secu…(新标签页打开原帖)
3 赞 · 4 评论·10月26日 15:33采集