subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
for cmd in commands: try: proc = subprocess.run( cmd, timeout=180, capture_output=True,- Confidence
- 93% confidence
- Finding
- The code spawns package-manager subprocesses to install dependencies at runtime, which changes the host environment and may fetch code from external package indexes. While the command arguments are not shell-interpreted and there is no obvious command injection here, executing installers from a local export helper is still a real security concern because it introduces unexpected code execution and supply-chain risk.
