一幅在深藍色背景上生成的抽象插圖:一條由小型稜角字形構成的纖細青色線條,從左側一個風化的灰色矩形出發,穿過一個僅以隱約網格標示的半透明琥珀色窗格,最後終止於右側一個發光的白色終端輪廓。三個淡色小檔案方塊沿著線條固定排列,宛如路徑點。圖中沒有出現任何文字、人物或組織標誌。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.

攻擊鏈實際上究竟是什麼

馬爾祖克在報告中以及接受 The Hacker News 採訪時提出的論點,並不是某個單一助理存在錯誤。他的論點是,AI 程式編寫工具是建立在這樣的軟體之上:這套軟體二十年來一直假設操作它的只有人類;而且沒有任何供應商把基礎編輯器納入其威脅模型。

同一領域中先前的揭露,每一項都止於單一應用程式:一個帶有路徑遍歷(path traversal)問題的工具、一個被留成可寫入的代理程式設定檔、一份代理程式可自行編輯的 MCP 設定。IDEsaster 則為這條鏈加上第三步。首先,提示注入劫持了代理程式的上下文。接著,代理程式本身的工具——往往完全照著設計運作,且工作區內的檔案寫入預設為自動核准——執行了尋常的動作。然後,base IDE 一項長久存在的功能,只要被代理程式剛剛寫入的檔案觸發,就會洩漏資料或執行程式碼。由於最後這一步屬於底下共用的編輯器,每一款建構於該編輯器上的助理都繼承了它。

注入本身是成本最低的一環。Marzouk 的威脅模型列出規則檔案、遭入侵、被 rug pull(抽地毯)或僅轉送攻擊者控制內容的 MCP 伺服器、深層連結、貼上的 URL、檔案名稱,以及藏在 README 中的文字。The Hacker News 也摘要了同一份清單。「所有 AI IDE(以及與其整合的程式設計助理)在威脅模型中實際上都會忽略基礎軟體(IDE),」Marzouk 向該媒體表示。「他們認為自家功能本質上安全,因為這些功能已存在多年。然而,一旦加入可自主行動的 AI 代理,同樣的功能就可能被武器化,變成資料外洩與 RCE 原語。」

最終導致資料竊取或程式碼執行的三種方式

遠端 JSON 結構描述。JSON 檔案可在 $schema 欄位中指定外部結構描述,而編輯器會擷取該 URL 以據此驗證。撰寫一個 JSON 檔案,讓其結構描述 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 的代理面板問題為 CVE-2025-55012,在 CVSS v4.0 下評為 8.5,已於 0.197.3 修復。Microsoft 的兩個 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 要求在 Supervised 模式下確認。該公告的日期比 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 識別碼、其評分與其修正版本,皆可在編號主管機關自家的資料庫及 Microsoft 的公告服務中查核,且與該報告相符。Tom's Hardware 獨立於 The Hacker News 報導了這項研究。ReversingLabs 於 2026 年 3 月 25 日發表其自身的分析,將 IDEsaster 視為一類供應鏈風險,而非單一事件。AWS 的公告獨立證實了 Kiro 與 Amazon Q 這一部分,並在揭露研究人員的名單中列出 Marzouk。

已確立,並記錄在案:

• 此機制共有三種有文獻記載的變體,並具體指名以下 IDE 功能:遠端 JSON schema 取得、設定檔中的可執行檔路徑,以及多重根工作區的根目錄。

識別碼。二十四個 CVE,其中十個列於上表,分數與修正版本取自其已發布的記錄,另有 AWS-2025-019 作為獨立公告。

• 修補程式。每個 CVE 都標明了一個版本,而廠商在 2025 年 6 月至 11 月之間發布了這些修補程式。

• 目前尚未有任何利用行為被通報。ReversingLabs 2026 年 3 月的文章引述 KnowBe4 的 Roger Grimes 表示,他「不知道有任何同時涉及 AI 與 IDE 的真實世界攻擊」——該文發表三個月後,且與該檔案庫的「無實際危害」旗標一致。

尚未確立,或陳述得不如乍聽之下精確:

• 「數百萬名使用者。」 這是研究人員對觸及範圍的估計;考量到涉及的產品,這項估計尚屬合理,但目前沒有廠商或監管機關公布受影響的安裝數量。該檔案庫將此列為中等嚴重性,是對這項發現的分類,並非衡量影響範圍的指標,而且低於其中數個個別 CVE 所獲得的 7.5 至 8.5 分。

• 是否每家供應商都完成了。 Marzouk 在發表時寫道,有些廠商已承認這些問題,但超過 90 天後仍未修復。他在公開報告中並未點名,因此無法從公開紀錄逐一廠商核實這項說法。

• 作品的歸屬。 報告並未說明 Marzouk 的雇主。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 載入並啟用,報告指出其下載次數超過 3,000 萬次;而一個 Directory.Build.props 會被 C# 語言伺服器評估,該伺服器列出的下載次數超過 5,000 萬次。兩者都已驗證為程式碼執行路徑。在該篇文章中,他估計首次發布後,12 家廠商共修補了近 30 個漏洞,並同時搭配沙箱與對外連線控制。這些數字是研究者自行統計,並非經稽核的計數。

他建議的緩解措施實質上並未改變。對使用這些工具的人來說:只在受信任的專案中工作,將規則檔、README 檔甚至檔名視為注入途徑,只連線到你會監控變更的 MCP 伺服器,檢查貼上的來源是否有隱藏指令,並在存在人在迴路(human-in-the-loop)機制的地方重新啟用它。對建置這些工具的人來說:將每個工具的範圍限制在最小資源集,要求對 dotfiles 和設定檔的寫入需經核准,將命令執行置於沙箱,在編輯器層將對外流量列入允許清單,並假設代理程式已遭入侵。

真正經得起時間考驗的重點,比標題上的數量更為狹窄。這些錯誤每一個都是功能依照規格運作,而該軟體本來就沒有理由預期會由自主流程來呼叫它。這就是為什麼修補措施分散在十幾家廠商與兩輪研究之中,而非彙整於單一修補程式——也是為什麼這份紀錄被歸檔為研究發現,而不是事件。