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.