GHSA-459r-276m-w72x
Shell Approval Bypass in deepagents-acp via Commands That Fail to Parse
01Record
| Identifier | GHSA-459r-276m-w72x |
|---|---|
| Project | deepagents-acp |
| Component | deepagents_acp/utils.py |
| CWE | CWE-78 |
| CVSS | 6.0 |
| Disclosed | 2026-10-13 |
| Endor reference | ENDOR-VUL-2026-2805 |
02Detail
Description: The ACP server in deepagents-acp auto-approves a shell command when every program name extracted from its segments is already on the session's "Always allow" list. extract_command_types in deepagents_acp/utils.py splits the line and derives program names with shlex, and segments that fail to parse are silently dropped rather than treated as a reason to stop auto-approving. AgentServerACP._handle_interrupts in deepagents_acp/server.py then runs the full line.
An attacker-influenced command can append a second command whose quoting is deliberately broken inside a shell comment. The approval gate sees only the allowed program and skips the prompt, while the shell executes the whole line. With ls on the allow list, ls && echo PWNED #' runs without any interrupt.
Impact: Integrity loss through unapproved command execution — files can be modified or deleted with the agent user's privileges, bypassing the human-in-the-loop approval that the "Always allow" mechanism is meant to enforce.
Affects deepagents-acp from 0.0.3 up to 0.0.13. Fixed in 0.0.13, which scopes "Always allow" to the exact command and arguments rather than the program name alone. Tracked as CWE-78.
Discovered by Peyton Kennedy (p80n).