# OS Command Injection - ID: python-command-injection - Severity: CRITICAL - CWE: OS Command Injection (CWE-78) - Languages: Python - Frameworks: django, flask, fastapi, pyramid, tornado, bottle ## Description Detects untrusted user input flowing into operating system command execution functions without proper sanitization. ## Remediation Use subprocess with argument lists and shell=False. ```python subprocess.run(["ping", "-c", "2", ip_address], check=True) ``` Learn more: https://shoulder.dev/learn/python/cwe-78/command-injection ## Documentation [object Object] ## Related Rules - **Command Injection via os/exec** [CRITICAL]: - **Command Injection via child_process** [CRITICAL]: