
Cloud Vulnerability DB
A community-led vulnerabilities database
Over ACP, a sensitive action reaches AG2 as session/request_permission with a list of options, each tagged allow_once, allow_always, reject_once, or reject_always. With the default permission_policy="ask", AG2 shows the options and asks "Allow? (yes/no)", then: _ALLOW_KINDS = ("allow_once", "allow_always") _AFFIRMATIVE = {"y", "yes", "allow", "allow_once", "allow_always", "ok", "approve"} ... allow_id = _option_id_of_kind(options, _ALLOW_KINDS) # first option of EITHER allow kind ... if answer.strip().lower() in _AFFIRMATIVE: return allow_id allow_id is the first option whose kind is allow_once or allow_always, in the order the agent sent them. Every affirmative maps to it, including the literal allow_once. If an agent lists allow_always before allow_once, one "yes" selects Always Allow on the human's behalf. Gemini CLI, named as a supported agent in AG2's ACP docs, does exactly that. From its shipped source (google-gemini/gemini-cli packages/cli/src/acp/acpUtils.ts::toPermissionOptions, read via the GitHub API 2026-11-06): for exec, edit, mcp, and info, an allow_always option (ProceedAlways; for MCP ProceedAlwaysServer) is pushed first while getDisableAlwaysAllow() is false (its default), and the allow_once option (ProceedOnce) is appended last via basicPermissionOptions. Gemini then acts on the "always" choice (packages/core/src/scheduler/policy.ts): for exec it installs a session policy keyed to the command's root prefix (all git ...), so later commands with that root run without another request_permission. AG2's human is never asked again. So "ask" stops meaning one action: a single approval covers that whole command root for the session, the human is not asked again, and typing allow_once by name still selects allow_always. Attack path: a developer drives Gemini CLI from AG2 with the documented ACPConfig(["gemini", "--experimental-acp"]) and default permission_policy="ask". Early on, Gemini asks to run something harmless (git status); the human says yes (or types allow_once). AG2 sends ProceedAlways, so Gemini auto-allows every git command for the session. Later the agent reads attacker-controlled content carrying an indirect injection, or simply errs, and runs git clean -fdx, git reset --hard, or git -c core.sshCommand=... - same root, no permission request reaches the human. The grant is keyed to the root prefix, so one git yes auto-approves only later git subcommands; reaching a different root needs its own earlier benign approval. Prompt injection is only the delivery route; the defect is that AG2 granted wider than the human allowed.
Affected products: Ecosystem: pip Package: ag2 (with the acp extra) Affected versions: ag2 with the acp extra. Verified on ag2 1.3.0 (PyPI latest, 2026-11-06) and main 3539d0750059fce639ac88b2a20ca2f34e467cc2; permissions.py is byte-identical across them. Shipped with ACP support in #3026; every release that includes ag2.acp is affected. Patched versions: None. Still unfixed on release v1.3.0 and main 3539d07 as of 2026-11-06. Vulnerable functions: ag2/acp/permissions.py, resolve_permission_option_id() (def line 32; _ALLOW_KINDS line 19, _AFFIRMATIVE line 22, allow_id = line 46, affirmative return line 61), called from ag2/acp/bridge.py:253 (BridgeState.resolve_permission). Severity (CVSS v4.0): CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N (conditional High, effectively Medium) Weaknesses: CWE-863 (with CWE-1188) Suggested fix: Never widen a one-time yes. Prefer allow_once; send allow_always only when the human explicitly asks for it. The minimal form - allow_id = _option_id_of_kind(options, ("allow_once",)) or _option_id_of_kind(options, ("allow_always",))
Local, no LLM, no network. Three files, run in Docker with --network none:
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N (conditional High, effectively Medium) AV:N: the later, auto-approved command is typically triggered by content the agent fetches. AT:P: the agent must list allow_always before allow_once (Gemini does today) and the human must give one benign approval first. UI:A: the human actively approves that earlier, benign request. VC/VI/VA:H: the silently auto-approved commands run as the developer and within one root can be destructive (git clean -fdx, git reset --hard, git -c core.sshCommand=...). Not an unauthenticated RCE: the preconditions are all real and all required.
Source: NVD
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."