subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
def run_cli(args, f): return subprocess.run([sys.executable, ENGINE] + args + ["--file", f], capture_output=True, text=True)- Confidence
- 70% confidence
- Finding
- subprocess module calls execute external commands. Without careful input validation, this enables command injection.
