subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
for key, value in (env_overrides or {}).items(): env[str(key)] = str(value) completed = subprocess.run( command, cwd=cwd, env=env,- Confidence
- 94% confidence
- Finding
- The runner executes a command derived from configurable executor specifications sourced from config, brief, scheduler, or environment variables. Although `subprocess.run` is invoked without `shell=True`, this still allows arbitrary program execution when an attacker can influence those settings, making it an unsafe trust boundary for a skill that may process externally supplied campaign data and runtime configuration.
