跳到正文
DEV Community· johnettwawers·· 5 小時前AI 評分45

snow-cli 子代理工具核准檢查作出錯誤授權決定

snow-cli Let a Subagent Approval Check Make the Wrong Decision

AI 導讀

CVE-2026-138297 影響 MayDay-wpf snow-cli 0.9.14 及之前版本,問題出在子代理工具核准元件作出不當授權決定。0.9.15 已修正問題;建議升級至 0.9.15 或更新版本,並測試未核准工具、參數變更及遭拒後重複請求等情況。

正文

johnettwawers

snow-cli Let a Subagent Approval Check Make the Wrong Decision

CVE-2026-138297 affects MayDay-wpf snow-cli through 0.9.14. The issue is in checkAndApproveTools() in source/utils/execution/subAgentToolApproval.ts. The subagent tool-approval component makes an improper authorization decision. Version 0.9.15 contains the fix.

Agentic command-line tools connect a language model to local files, shells, browsers and remote services. Approval prompts are part of the security boundary when those tools can take actions. A check that approves the wrong tool or skips the intended review path can let a subagent perform an action outside the operator's explicit grant.

Focus on the decision, not the prompt

An approval dialog is only useful if the code that runs the tool consults the same policy object that the dialog describes. Teams should compare the tool name, arguments, target resource and scope that were shown with the values used at execution time. Look for fallback paths that approve unknown tool names, default to an allow decision or trust a subagent's self-reported risk level.

The CVE record does not establish that every agent invocation is exploitable. The engineering response starts with the tool boundary: record what the subagent requested, what the operator approved and what actually ran. Reconcile those records during incident review.

Update and test

Upgrade to 0.9.15 or later after verifying the release artifact. Build a test harness with a harmless file writer and shell command. Attempt unapproved tool names, changed arguments, nested subagents and repeated requests after a denial. Confirm that unknown tools fail closed and that approval for one action does not become approval for another.

Review shell history, generated files and outbound connections from agents that ran the affected version. Revoke long-lived credentials stored in the CLI environment. Require short-lived, resource-scoped credentials for future runs, and keep destructive actions behind a separate human confirmation path.

References

來源:DEV Community · dev.to