claude-tui
Warn
Audited by Gen Agent Trust Hub on Aug 20, 2026
Risk Level: MEDIUMCOMMAND_EXECUTION
Full Analysis
- [COMMAND_EXECUTION]: The script
scripts/tui_cmd.pyis vulnerable to shell command injection when initializing a tmux session. - Evidence: In the
run_tui_commandfunction, thecwdvariable (derived from a session's JSON data or the--dirargument) is interpolated directly into a shell command string:f"cd {cwd} && claude --resume {session_id}". - Risk: A maliciously crafted session file or an untrusted path passed to
--dircould contain shell metacharacters (e.g.,;,&,|) resulting in arbitrary command execution whentmux new-sessionis called. While the Pythonsubprocess.runcall uses a list for the outertmuxcommand, the inner command passed to tmux's shell remains unsanitized.
Audit Metadata