subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
def run_checked(command: list[str], *, capture: bool = False) -> subprocess.CompletedProcess[str]: return subprocess.run( command, check=True, text=True,- Confidence
- 70% confidence
- Finding
- subprocess module calls execute external commands. Without careful input validation, this enables command injection.
