Improper Neutralization of Input Used in a Command (Command Injection) High

Passing user-provided input to Python command-execution APIs such as os.system() or subprocess.run(..., shell=True) without validation or sanitization makes your code vulnerable to running arbitrary OS commands. This could allow attackers to execute unexpected, dangerous commands directly on the operating system.

Detector ID
python/commandinjectionpython@v1.0
Category
Common Weakness Enumeration (CWE) external icon
-
Tags
-