深海军蓝背景上的一幅生成式抽象插画:一条由小型棱角字形组成的细青色线条从左侧一个斑驳的灰色矩形延伸出来,穿过一块仅由淡淡网格标记的半透明琥珀色面板,并终止于右侧一个发光的白色终端轮廓。三个浅色小文件图块像路标一样沿线条固定。画面中未出现任何文字、人物或组织标识。OrcaRouter 标识合成在右下角。
AI Safety Incidents

IDEsaster:30 多个缺陷、24 个 CVE,以及一种波及所有 AI IDE 的注入模式

作者

jinhao.song

发布日期

最新模型 · 20查看全部模型 →
基准测试:Artificial Analysis · 每日更新
返回全部文章

On 6 December 2025 the security researcher Ari Marzouk, who publishes as MaccariTA, released IDEsaster, the write-up of a six-month investigation that found more than 30 vulnerabilities in AI-powered code editors and coding assistants, and concluded that 100% of the AI IDEs and assistants he tested could be driven from a poisoned file or a hostile Model Context Protocol server into data theft or remote code execution. Twenty-four of the flaws carry CVE identifiers, and an AWS security bulletin published two months earlier credits him among the researchers behind prompt-injection fixes in Amazon Q Developer and Kiro. The affected list is most of the agentic-coding market: GitHub Copilot, Cursor, Windsurf, Kiro.dev, Zed.dev, Roo Code, JetBrains Junie, Cline, G​emini CLI and C​laude Code. Nobody, including the researcher, has reported the chain being used against a real target. This is one record in the AI incident archive, where each entry carries its own sources, severity, confidence grade and disputed flag.

攻击链实际上是什么

Marzouk 在报告以及接受 The Hacker News 采访时提出的论点并不是某个单一助手存在缺陷,而是 AI 编程工具构建在这样一种软件之上:它二十年来一直假设只有人类在操作它;并且没有任何供应商将基础编辑器纳入其威胁模型。

同一领域中较早的披露,每一项都止步于单一应用:一个带有路径遍历漏洞的工具,一个被留为可写的智能体配置文件,一个智能体可以编辑的 MCP 配置。IDEsaster 为这条链增加了第三步。首先,提示注入劫持智能体的上下文。接着,智能体自己的工具——往往完全按设计运行,工作区内文件写入默认自动批准——执行普通操作。然后,一个长期存在的功能,属于base IDE,由智能体刚写入的任一文件触发,泄露数据或执行代码。由于最后一步属于底层共享编辑器,构建在该编辑器上的每个助手都会继承它。

注入本身只是成本较低的一环。Marzouk 的威胁模型列出了规则文件、被入侵、被“拉地毯”(先建立信任后恶意更改)或仅仅转发攻击者控制内容的 MCP 服务器、深度链接、粘贴的 URL、文件名,以及隐藏在 README 中的文本。The Hacker News 总结了同一份列表。Marzouk 告诉该媒体:“所有 AI IDE(以及与其集成的编程助手)实际上都在其威胁模型中忽略了基础软件(IDE)。”“它们认为自己的功能本质上安全,因为这些功能已经存在多年。然而,一旦你加入能够自主行动的 AI 智能体,同样的功能就可能被武器化为数据外泄和 RCE 原语。”

最终导致数据窃取或代码执行的三种方式

远程 JSON schema。一个 JSON 文件可以在其中指定外部 schema,具体是在 $schema 字段中,并且编辑器会获取该 URL 以据此进行验证。编写一个 JSON 文件,让其 schema URL 在查询字符串中携带数据,编辑器就会自行发起请求——向攻击者的服务器发送一个附带了窃取内容的 GET 请求。Marzouk 报告称,Visual Studio Code、JetBrains IDE 和 Zed 都默认支持该功能,而且即使显示差异预览,请求也会触发,这可能会绕过某些工具所依赖的人工批准步骤。

指定可执行文件的 IDE 设置。每个 Git 仓库都会在 .git/hooks/ 下附带示例钩子,且这些文件可写。编辑其中某个文件的代理随后可以往 .vscode/settings.json 中写入一行,将 php.validate.executablePath 指向它,并创建任意 PHP 文件。编辑器一看到该文件就会运行配置的“PHP 二进制”。JetBrains 变体则使用 PATH_TO_GIT 放在 .idea/workspace.xml 中。

多根工作区。Visual Studio Code 的 *.code-workspace 文件还可以把项目之外的文件夹添加为工作区根目录,从而绕过“工作区外”审批提示。攻击者随后编辑一个现在已位于工作区内的可执行文件,将 php.validate.executablePath 指向它,然后触发它。Marzouk 将这第三种情况称为最能体现真实风险的情况:封堵一个设置文件,下一个功能又会提供同样的原语。

Marzouk 在三起案例中均未公开具体的利用提示词,他写道,尽管负责任披露已过去 90 多天,一些厂商已承认这些问题,却仍未修复。报告改为给出受影响产品和 CVE 编号,这足以对照公开记录核实其说法。标识符、严重性评分和修复版本三者完全对得上:Cursor 的 JSON-schema 泄露为 CVE-2025-49150,评分 5.9,已在 0.51.0 中修复;其设置文件路径问题为 CVE-2025-54130,评分 7.5,已在 1.3.9 中修复;Roo Code 的对应问题为 CVE-2025-53097(5.9)和 CVE-2025-53536(8.1)。Zed 的 agent 面板为 CVE-2025-55012,在 CVSS v4.0 下评为 8.5,已在 0.197.3 中修复。微软的两项 Copilot 条目 CVE-2025-53773 和 CVE-2025-64660 分别评为 7.8 和 8.0,MSRC 将二者均记录为“重要”,且未公开披露、未被利用。

An HTML card headed 'Ten of the 24 CVEs, and what each one actually fixed' with the kicker 'IDEsaster · published 6 December 2025'. A ten-row table lists CVE identifier, product, the feature abused, the CVSS score and the fixed version: CVE-2025-49150 Cursor, remote JSON schema fetched on write, 5.9 MED, fixed in 0.51.0; CVE-2025-53097 Roo Code, search_files ignoring the workspace limit then schema, 5.9 MED, 3.20.3; CVE-2025-58335 JetBrains Junie, information disclosure via search_project, 5.5 MED, 252.284.66 and later; CVE-2025-54130 Cursor, agent writes .vscode/settings.json with no approval, 7.5 HIGH, 1.3.9; CVE-2025-53536 Roo Code, executable path in .vscode/settings.json, 8.1 HIGH, 3.22.6; CVE-2025-55012 Zed, agent bypasses permission checks for config, 8.5 HIGH under CVSS v4.0, 0.197.3; CVE-2025-53773 GitHub Copilot and Visual Studio, command injection into a settings file, 7.8 HIGH, Visual Studio 17.14.12; CVE-2025-64660 GitHub Copilot and Visual Studio Code, improper access control in a multi-root workspace, 8.0 HIGH, Visual Studio Code 1.106.2; CVE-2025-61590 Cursor, RCE via .code-workspace files, 7.5 HIGH, 1.7; CVE-2025-58372 Roo Code, RCE via .code-workspace files, 8.1 HIGH, 3.26.0. A footer notes that CVE-2025-58372 was reported to Roo Code by thelicato rather than by Marzouk, and that the report counts 30+ vulnerabilities in total so several findings carry no identifier. The OrcaRouter logo is composited in the bottom-right corner.

谁受到了影响,以及供应商是如何回应的

暴露人群是指任何在 Visual Studio Code、JetBrains IDE 或 Zed 中运行智能体助手的人,而这三者合计涵盖了目前使用中的大多数商业和开源编程智能体。Marzouk 将这些产品描述为“10 多款影响数百万用户的领先产品”;这一数字是他对覆盖范围的概括性说法,而非经过实测的安装量,也没有任何来源公布过此类数据。Tom's Hardware 在 2025 年 12 月 7 日报道这项研究时,重复了 100% 这一结论以及那十款被点名的产品。

The vendor responses were uneven, and the gaps matter more than the patches. GitHub Copilot's and Kiro's remote-schema issues were both fixed without a CVE being assigned, and so was Kiro's settings-file path, according to the report; Copilot's settings and multi-root cases did get identifiers. JetBrains shipped builds of Junie with the fix. Cursor, Roo Code, Zed and Microsoft issued numbered CVEs with fixed versions a defender can check. C​laude Code, according to the report, acknowledged the issue and chose to address it with a security warning in its documentation rather than a code change — the C​laude Code security documentation does now carry a trust section, workspace-boundary prompts and MCP approval guidance, though it does not name IDEsaster.

CVE 体系之外唯一的一份公告是 AWS-2025-019,由 Amazon 于 2025 年 10 月 7 日发布,涵盖 Amazon Q Developer 和 Kiro,并致谢 Embrace the Red、HiddenLayer 和 MaccariTA。它记录了这些修复陆续落地的情况:2025 年 7 月 17 日的 Language Server 1.22.0 要求对 find、grep 和 echo 进行人工确认;7 月 29 日的 1.24.0 针对 ping 和 dig;以及 8 月 1 日的 Kiro 0.1.42 要求在监督模式下进行确认。该公告的日期比 IDEsaster 发布早两个月,这是最清楚的证据,表明在汇总文章出现之前,底层问题正被逐个厂商地处理解决。

A generated abstract illustration on a dark navy field: at the left, a small pale document icon sits inside a dashed rectangle labelled only by shape, representing a project folder. A thin amber line runs from it into a tall dark slab of stacked horizontal bars at right, and at the point of contact a single bright white square opens like a shutter. Behind the slab, faint ghosted outlines of many more identical slabs recede into the dark. No text, people or organisation logos appear. The OrcaRouter logo is composited in the bottom-right corner.

哪些是已确立的,哪些不是

档案馆将这条记录评为置信度 A,无争议,未记录到实际损害,公开记录也支持这一点。CVE 标识符、其评分及修复版本可在编号机构自己的数据库和微软的公告服务中核查,并且与报告一致。Tom's Hardware 独立于 The Hacker News 报道了这项研究。ReversingLabs 于 2026 年 3 月 25 日发布了自己的分析,将 IDEsaster 视为一个供应链风险类别,而非单一事件。AWS 公告独立证实了 Kiro 和 Amazon Q 这一线索,并将 Marzouk 列为披露研究人员之一。

已确立,并记录在案:

• 该机制有三种有文档记录的变体,并明确指出了具体的 IDE 功能:远程 JSON 模式获取、设置文件中的可执行文件路径,以及多根工作区根目录。

• 标识符。共 24 个 CVE,其中 10 个列在上表中,其评分和修复版本取自各自已发布的记录;另有 AWS-2025-019 作为单独的安全公告。

• 修复程序。每个 CVE 都标明了版本,厂商于 2025 年 6 月至 11 月间发布了这些版本。

• 即没有报告过任何利用行为。ReversingLabs 2026年3月的文章引用了 KnowBe4 的 Roger Grimes 的话,称他“不知道有任何一起同时涉及 AI 和 IDE 的真实世界攻击”——在文章发布三个月后,且与该存档的“无实际危害”标记一致。

尚未确立,或者表述得不如听起来那么精确:

• “数百万用户。”这是研究人员对影响范围的估计;考虑到所涉产品,这一估计是合理的,但没有任何供应商或监管机构公布过受影响的安装数量。该档案库的中危等级是对该发现的分类,而非对影响范围的衡量,并且它低于其中若干单独 CVE 所带的 7.5 至 8.5 分数。

• 是否每家供应商都已完成。Marzouk 在发布时写道,一些供应商已承认这些问题,但在超过 90 天后仍未修复。他在已发布的报告中没有点名这些供应商,因此无法根据公开记录逐一核查该说法。

• 工作归因。 报告未说明马尔祖克的雇主。ReversingLabs 在 2026 年 3 月的文章中称其为 Microsoft 高级安全研究员;本文审阅的一手文件均未证实或否认这一点,这也不影响技术结论。

• 24 是否为完整数量。报告称存在“超过 30 个”漏洞和 24 个 CVE,这意味着还有若干发现项没有标识符——正是这一缺口,使得已修复的缺陷在漏洞资讯源中未被标记。

An HTML card titled 'Established, and not' with the kicker 'Record 2025-12-06-idesaster', split into two columns under the line that the archive files this as a research finding with confidence A, not disputed, no real harm recorded and date precise to the day. The left column, 'Established, on the record', lists five ticked items: 30+ findings and 24 CVEs published by Ari Marzouk on 6 December 2025 after a six-month investigation; three abuse variants against named editors; fixed versions named for every CVE in the table; independent corroboration from Tom's Hardware and from AWS-2025-019 crediting Marzouk on Kiro and Amazon Q; and no real-world use, with ReversingLabs in March 2026 quoting KnowBe4's Roger Grimes saying he knew of none. The right column, 'Not established, or looser than it sounds', lists five dashed items: the number of affected users; which vendors left issues unfixed at publication, whom the report does not name; the researcher's employer, which the report does not state; whether every one of the 30+ findings has a CVE; and the archive's medium severity, a classification rather than a blast-radius measure. A footer cites the IDEsaster report, The Hacker News, Tom's Hardware, AWS-2025-019 and ReversingLabs. The OrcaRouter logo is composited in the bottom-right corner.

之后发生了什么变化

最具体的后果是第二轮研究。2026年5月11日,Marzouk 发布了 IDEsaster 2.0,认为厂商为应对而交付的缓解措施——将 .vscode/settings.json、*.code-workspace 和 .idea/workspace.xml 列入拒绝列表,使代理在写入这些文件前必须先询问——在结构上不足。后续研究将这个利用组件向外移了一层,移入合法的语言服务器:一个空的 Gemfile.lock 加上一个精心构造的 ruby_lsp/**/addon.rb 会被 Shopify 的 Ruby Language Server 加载并激活,报告称其下载量超过3000万;而 Directory.Build.props 会被 C# 语言服务器求值,列示下载量超过5000万。两者均已被验证为代码执行路径。在那篇文章中,他估计首次发布后,12家厂商共修补了近30个漏洞,同时还加入了沙箱和出站控制。这些数字是研究者自己的统计,并非经过审计的计数。

他建议的缓解措施实质上没有变化。对于使用这些工具的人:只在可信项目中工作,将规则文件、README 甚至文件名都视为注入向量,只连接你会监控其变化的 MCP 服务器,检查粘贴的来源中是否藏有隐藏指令,并在任何存在人工介入的地方重新启用它。对于构建这些工具的人:将每个工具的作用范围限定在尽可能窄的资源集内,对写入 dotfiles 和配置的操作要求审批,对命令执行进行沙箱隔离,在编辑器层面对出站流量实施允许列表,并假定智能体已经被攻破。

真正持久的要点比标题中的数字更有限。这些缺陷中的每一个,都是按规范正常运行的功能,只不过所在软件本来没有理由预料到调用它的是一个自主进程。这就是为什么修复分散在十几家供应商和两轮研究之中,而不是集中在一个补丁里——也是为什么这份记录被归档为研究发现,而非事件。