Tainted flow: 'cmd' from os.environ.get (line 202, credential/environment) → subprocess.run (code execution)
Medium
- Category
- Data Flow
- Content
cmd.extend(["--reply-to", reply_to]) try: result = subprocess.run( cmd, input=content, capture_output=True,- Confidence
- 84% confidence
- Finding
- The executable path comes from the BUZZ_CLI environment variable and is passed directly to subprocess.run. If an attacker can influence the service environment or startup configuration, they can replace the intended buzz binary with an arbitrary program and gain code execution under the agent's privileges.
