subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
args = command if self._shell else shlex.split(command, posix=False) start = time.monotonic() try: result = subprocess.run( args, shell=self._shell, cwd=cwd,- Confidence
- 91% confidence
- Finding
- This code executes arbitrary local commands via subprocess.run and supports a configurable shell=True mode. In the context of a multi-agent code-development orchestration skill that may pass tool-generated or repository-derived commands into this executor, any insufficient validation at higher layers can turn this into command injection or unsafe local code execution.
