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

Passing user-provided input to Runtime.getRuntime().exec() or ProcessBuilder with a shell command (e.g., bash) 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
java/commandinjection@v1.0
Category
Common Weakness Enumeration (CWE) external icon
-
Tags
-