一幅生成的抽象插圖,背景為淡藍灰色調,帶有極其細微的技術網格:一片寬闊而淺的平面被一道半透明的弧形邊界分隔,其中安放著一個小型密封艙體。一條纖細的青色細線自艙體延伸而出,穿過邊界上的一個狹窄開口,繼續向外橫越平面,通往三個遙遠的低矮節點,其中僅有一個以琥珀色描邊,其餘則維持灰色。圖中未出現任何文字、數字、人物、標誌或品牌標記。OrcaRouter 標誌合成於右下角。
AI Safety Incidents

CVE-2026-136998:網域清單被寫入,卻從未被讀取

作者

Rowan Sterling

發佈日期

本文提到的模型 · 4查看全部模型 →
返回全部文章

2026 年 11 月 30 日,Docker 發布 Docker Sandboxes v0.55.0,以修復 CVE-2026-136998;這是一項缺陷,讓第三方 agent 套件得以重複使用開發者先前的憑證核准,並讓主機端代理將已儲存的 Anthropic、OpenAI 或 GitHub 金鑰傳送到攻擊者控制的主機,且不會出現新的提示。Endor Labs 研究員 Peyton Kennedy 發現了此問題,以假金鑰與本機測試伺服器進行示範,並在同日發表技術報告;Docker 作為 CVE 編號機構,於 12 月 1 日發布該記錄。從 0.43.0 起、直到但不包含 0.55.0 的每個版本都受影響,涵蓋 macOS、Linux 與 Windows;Docker Sandboxes 預設會全域儲存機密,因此被重新導向的金鑰,就是該機器上每個沙箱所使用的同一把金鑰。目前尚未有遭利用的報告。該記錄連同其嚴重性、信心等級與引用來源,已歸檔於 AI 事件檔案;該檔案收錄此條目,並與其周遭歸檔的 agent 沙箱及憑證竊取記錄並列。

承諾,以及被跳過的檢查

Docker Sandboxes 在 microVM 中執行 AI 程式設計代理,並以一個特定主張來推銷這種隔離:原始 API 金鑰永遠不會進入沙箱。開發人員在主機上使用 sbx secret set 儲存供應商金鑰;虛擬機器內的代理會傳送帶有佔位符的請求,例如 proxy-managed;而主機上的代理會在對外傳送時將佔位符替換為真實憑證,且僅限於套件已宣告的目的地。Docker 自家的憑證文件說明了這種分工——「套件宣告比對規則與標頭;您在主機上提供值」——並表示純 HTTP 請求永遠不會被賦予主機憑證。

套件是從登錄庫、Git 參照或本機資料夾取得的一種封裝式代理程式設定,而其 inject 區塊會宣告哪個網域應接收憑證,以及要放在哪個標頭中。自 2026 年 9 月 15 日發布的 0.43.0 版起,核准套件的憑證要求會寫入一筆繫結,記錄開發人員同意的服務與網域。該記錄位於 ~/.config/sbx/credentials.yaml,或 Windows 上的 %APPDATA%\sbx\credentials.yaml,且儲存的是核准內容,而非金鑰值。

根據 Endor Labs,該清單被記錄下來,之後卻從未被查閱。在請求時,代理只會詢問該服務名稱是否存在綁定;一旦找到,它就會用真實金鑰取代目前版本套件所指名的任何目的地。正如該文章所述,「操作者核准的網域在該決策中不扮演任何角色」,更簡短地說,該清單「被寫入,卻從未被讀取」。該綁定也未與套件的名稱、摘要或來源綁定,因此對某個版本給予的核准會延續到從同一參照取得的每個後續版本。Kennedy 在他自己的分析中總結:「提示本身沒有問題。缺陷在於提示所承諾的內容之後從未被強制執行。」

一次核准如何變成永久權限

Endor Labs 所描述的流程不需要存取開發者的機器,只需要一套開發者已信任的套件,以及在其下一個版本中改動一行。

• 攻擊者發佈一個套件,宣告 api.anthropic.com 為其唯一的注入目的地,而同意提示會如實地完全顯示這一點。

• 開發人員核准此項。系統會寫入 Anthropic 服務的繫結,並記錄該網域。

• 攻擊者會更新同一個標籤、分支或本機目錄,使 inject 網域指向他們控制的主機。

• 下一次 sbx create 會找到該服務名稱的現有資料列,並默默繼續——在 Endor Labs 的帳戶中,不會有提示、警告或差異。

• 代理會將真實金鑰傳送給新的主機。該套件也能將自己的伺服器加入 permissions.network.allow,無需提示,根據同一份分析。

該核准的存續時間,比它當初獲准時所針對的沙箱還長。Endor Labs 報告指出,該綁定在沙箱被拆除後仍然存在,這很重要,因為使用sbx secret set儲存的機密預設是全域的:被重新導向的金鑰,是該機器上每個沙箱都會取用的那一把,而不是單一用完即丟的環境。

這項示範使用了偽造的 Anthropic 憑證,sk-ant-FAKE-CANARY-deadbeef,以及一個位於回送埠 8899 的金絲雀伺服器,其主機名稱 localtest.me 解析為 127.0.0.1。一個獲准使用 api.anthropic.com 的套件,在同一個參照位置被替換成指向 canary.localtest.me 的套件;下一次建立沙箱時沒有產生提示,而金絲雀收到虛擬金鑰,並以明文放在一個 X-Api-Key 標頭中。將該綁定所記錄的網域編輯為 [example.invalid] 並沒有改變任何事——Endor Labs 回報「外洩情況完全相同」,這個細節正好說明,儲存清單無論如何都沒有產生影響。

A self-built HTML card headed 'One approval, then a different destination', kicker 'The four steps Endor Labs describes, and what each party sees at that moment.' A four-column table follows with the columns Step, The kit declares, The developer sees and What the host proxy does. Step 1, a kit is published: the inject block names api.anthropic.com as the only destination; the developer sees a consent prompt showing that domain truthfully; nothing exists for the proxy yet. Step 2, the developer approves: the kit is unchanged; the developer accepts the prompt once; the proxy writes a binding recording the anthropic service and that domain to credentials.yaml. Step 3, the kit is updated: the same tag, branch or folder now names canary.localtest.me; the developer sees nothing, no update notice and no diff; the proxy reads only that a binding exists for the service name. Step 4, the next sbx create: the new destination is unchanged; the developer sees no prompt, warning or diff; the proxy substitutes the real key and sends it to the new host. An amber callout reads that the recorded domain list appears in every step and is consulted in none of them, because the approval was keyed to the service name alone, not the kit name, digest or source. Three panels below record that the binding outlived the sandbox, that editing the binding's domain list to example.invalid produced 'the leak was identical', and that sbx policy log recorded the connection as allowed while saying nothing about a credential. Four tiles read 0 prompts on later runs, 1 approval, 1 changed line and the affected range 0.43.0 to below 0.55.0. A footer credits Endor Labs and The Hacker News and notes the card is hand-built. The OrcaRouter logo is composited in the bottom-right corner.

重新導向的金鑰有多大價值

Endor Labs 計入十三個共用同一條注入路徑的內建服務,而 BleepingComputer 的報導列出了這些服務,包括 Anthropic、Copilot、Cursor、Devin、Droid、GitHub、Google、Groq、Mistral、Nebius、OpenAI 與 xAI。只有 Anthropic 曾以一個假值直接示範;其餘服務是依共用程式碼路徑推得,而非逐一測試。

損害程度取決於憑證的類型。Endor Labs 指出,對模型供應商而言,攻擊者會取得按用量計費的 API 存取權,費用記在受害者的帳戶上。對 GitHub 而言,權杖會授予其範圍所允許的一切權限;就典型的開發者權杖來說,這包括對其儲存庫的寫入存取權。由於沙箱並未遭入侵,且金鑰是真實的,請求會以一般已驗證呼叫的形式送達供應商。

不是沙箱逃逸,而且在日誌中也看不到

microVM 邊界從未被跨越。Kennedy 的記述指出,隔離主張依然成立,而且這件事「在這裡幫不上忙」——主機代理完全按照設計把憑證發了出去,卻發給了錯誤的目的地。這正是讓這個案例值得讀兩遍的區別:VM 隔離與憑證保管是兩項獨立的控制措施,而第二項失效時,第一項仍守住了。

偵測效果也很差。政策日誌將連線到金絲雀主機的連線記錄為允許,卻完全沒提到有憑證被注入其中。正如 Endor Labs 所說:「操作人員事後檢視日誌時,看到的是一筆普通的獲准請求」——這意味著管理員通常會搜尋的那唯一一項產物,也就是一筆帶著授權標頭、前往非預期主機的對外請求,看起來卻像正常的套件流量。

日期

這份記錄中的每個日期都精確到日,而且整個序列夠短,可以完整列出。Docker Sandboxes 0.43.0 於 2026 年 9 月 15 日發布同意綁定,引入該程式碼路徑。2026 年 9 月 21 日,Kennedy 以 ENDOR-VUL-2026-21091 向 Docker 回報該漏洞;同一位研究人員同日另行提交了一個獨立的 Docker Sandboxes 檔案複製漏洞 CVE-2026-103916,Docker 於 2026 年 11 月 3 日在 0.51.0 版中修復了該漏洞。Docker 於 2026 年 11 月 25 日保留 CVE-2026-136998,於 2026 年 11 月 30 日發布包含修復的 0.55.0——即存檔記錄的日期——並於 2026 年 12 月 1 日公布 CVE 記錄,同日 BleepingComputer 與 The Hacker News 報導了這項發現。

A self-built HTML card headed 'The record's dates, at day precision', kicker 'Six dated events between the code that introduced the flaw and the day it was published.' A table with columns Date, What happened and Source lists six rows. 15 September 2026: Docker Sandboxes 0.43.0 ships the consent bindings that record the service and the domains a developer approved, and the flaw is introduced with them; Docker release notes and The Hacker News. 21 September 2026: Peyton Kennedy of Endor Labs reports the flaw to Docker as ENDOR-VUL-2026-21091, and a second Sandboxes flaw, CVE-2026-103916, is reported the same day; Endor Labs. 3 November 2026: Docker 0.51.0 fixes CVE-2026-103916, the earlier file-copy flaw; Endor Labs and The Hacker News. 25 November 2026: Docker, as the CVE numbering authority, reserves CVE-2026-136998; CVE record. 30 November 2026: Docker releases 0.55.0 with the fix and Endor Labs publishes its write-up, and this is the archive's date for the record. 1 December 2026: the CVE record is published and BleepingComputer and The Hacker News report the finding. An amber callout says every date here carries a day, that nothing in the record is month-level, and that the ten weeks between the report to Docker and the public fix are the period in which an approved kit could have been swapped. A footer credits the sources and notes the card is hand-built. The OrcaRouter logo is composited in the bottom-right corner.

三個分數,同一套事實

這些數字並不一致,而且值得精確說明它們如何不一致。Kennedy 將該漏洞評為 CVSS 3.1 8.2(高)與 CVSS 4.0 6.9(中);The Hacker News 報導,他最初將其評為 9.3(嚴重),後來將攻擊向量更正為 local,理由是惡意套件是開發者所抓取的檔案,而不是攻擊者透過網路存取的服務。Docker 自己的 CVE 記錄則給出 CVSS 4.0 5.6(中),其向量對遭竊金鑰背後的供應商系統評為無影響,而研究人員的 4.0 向量則評為有影響。

兩個 CVSS 4.0 分數的差異在於:被竊金鑰所屬供應商帳戶所受的損害,是否計入基本分數——這是範圍問題,而非發生了什麼事的問題。存檔將該條目記錄為中等嚴重性、信心 A 且無爭議,而這種解讀站得住腳:Endor Labs、Docker 的 CVE 記錄、BleepingComputer 和 The Hacker News 在機制、受影響範圍與修復方式上看法一致。評分爭論在於後果應佔多大權重,而非漏洞是否存在。

Docker 改變了什麼,以及它沒有改變什麼

v0.55.0 版本說明用三句話描述這項修正:該版本「修正了 CVE-2026-136998,其中遭修改的第三方套件可能重複使用先前已核准的服務綁定,將儲存的提供者憑證傳送到攻擊者控制的主機」;「憑證注入現在會對 API 金鑰與 OAuth 權杖強制執行已核准的目的地」;以及「沒有已核准目的地的綁定會被視為缺少」。Docker 的憑證文件現在將 API 金鑰與 OAuth 網域描述為各自獨立的核准項目,在其中一個清單下核准不會授予另一個清單的權限,而兩個清單皆為空的項目不會授予任何存取權。CVE 記錄中針對無法升級者的變通方法說得更直白:「請勿在搭配儲存的提供者憑證時執行不受信任的第三方套件。」

甘迺迪要求的兩件事並未出現在已發布的版本說明中。他建議將核准綁定到套件的內容摘要,而非其服務名稱,這樣一來,變更後的產物就需要重新決策;並將每次憑證注入記錄於 sbx policy log,同時記錄其目的地。0.55.0 的版本說明確認了目的地強制執行,但兩者皆未提及。這兩項變更是否在沒有版本說明的情況下發布,並非所檢視的來源所能確定。

如果你執行過 0.43.0 到 0.54.x

研究人員的補救建議,據 The Hacker News 報導,是一份簡短清單,值得原文照錄,而非改寫。

• 開啟 ~/.config/sbx/credentials.yaml,或 %APPDATA%\sbx\credentials.yaml(Windows 上),並移除任何授予第三方套件的繫結。此檔案記錄的是核准項目,而非金鑰值,因此讀取它不會洩露祕密。

• 讀取套件的注入網域及其 permissions.network.allow 項目,並在每次 sbx create 時讀取,而不只是第一次。

• 在套件來源允許的情況下,將套件固定到特定的提交,或將已審查的副本保留在本機資料夾中。

• 依沙箱儲存金鑰,使用 --sandbox 旗標,而非全域儲存,讓重新導向的金鑰僅限於單一環境。

• 輪換任何後來變更的已核准第三方套件背後的供應商金鑰。

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

根據彼此一致的檔案,已確認:由讀過並對其進行示範的研究人員所描述的程式碼路徑與缺失檢查;根據 Docker 的 CVE 記錄,受影響範圍為 0.43.0 至 0.55.0(不含 0.55.0),涵蓋全部三個桌面平台;共用該注入路徑的十三個服務;2026 年 11 月 30 日於 0.55.0 中的修正;以及該示範使用的是虛設憑證,而非真實憑證。

同樣是從「沒有出現」來確立:Endor Labs、Docker、BleepingComputer 或 The Hacker News 均未通報任何漏洞利用情形,而該檔案庫也未記錄到任何實際危害。這只是在陳述已被觀察到的事實,並非證明在該漏洞存在的十週內沒有人執行過惡意工具包。

尚未確立,而提出這些問題的來源也如此表示:Docker 的雲端沙箱是否曾共用受影響的授權邏輯——The Hacker News 報導他們保有獨立的秘密儲存庫,且無論哪種情況都尚未獲得證實;核准現在是否綁定到 kit 摘要,或注入現在是否會被記錄,因為發行說明並未說明;以及 Endor Labs 之外是否有人重現了該重新導向。BleepingComputer 與 The Hacker News 獨立於該發現,但兩者都是對 Endor Labs 分析的報導,且尚無第二個研究團隊發表重現結果。

A self-built HTML card headed 'What the record supports, and what it does not', kicker 'Where each claim stands on 4 December 2026. The archive grades confidence A, severity medium, and records no real harm.' A table with columns Status, Claim and What stands behind it. Four rows are marked Established: an approved kit could reuse a service binding and redirect a stored provider key to a host of the kit author's choosing with no new prompt, per Endor Labs with a working demonstration on a dummy Anthropic key; the affected range 0.43.0 up to but not including 0.55.0 on macOS, Linux and Windows, per Docker's own CVE record; thirteen built-in services share the injection path with only Anthropic directly tested; and 0.55.0 enforces approved destinations for API keys and OAuth separately and treats a binding with no approved destinations as missing. Two rows are marked Not established: whether Docker's cloud sandboxes ever shared the affected authorization logic, which The Hacker News reports is unresolved; and whether approvals are now bound to a kit digest or injections recorded in the policy log, which the 0.55.0 notes do not mention. One row is marked No harm recorded: any real-world exploitation, with none reported by Endor Labs, Docker, BleepingComputer or The Hacker News, which is observed absence rather than proof. Four tiles read A, Medium, Confirmed and Not disputed, with lines explaining archive confidence, severity and no real harm, the AI-involvement grade, and that the CVSS scores differ while the facts do not. A footer credits the sources and notes the card is hand-built. The OrcaRouter logo is composited in the bottom-right corner.

什麼會改寫紀錄?

有三件事會改變這則條目,而不只是為它補充內容。一份關於某個套件遭利用的報告——被追蹤到意外目的地的供應商帳單,或從開發者從未核准的位址使用 GitHub token——會把已證實的缺陷變成造成損害的事件。Docker 若聲明雲端沙箱是否曾執行相同的授權檢查,將能釐清本地發現所留下的範圍問題。而研究人員要求的兩項強化步驟——摘要綁定的核准與注入記錄——將顯示該修復是終結了這類故障,還是只解決了這次的個案。