The llm CLI tool up to version 0.27.1 contains a critical code injection vulnerability via its --functions command-line argument. This argument allows users to provide custom Python code, which the tool executes directly using exec() without any sanitization or sandboxing. An attacker can exploit this by tricking a user into running a malicious command, leading to arbitrary code execution and potentially full system compromise. The vulnerability requires local access and user interaction to execute the crafted command. Red Hat rates this flaw as Important due to its local attack vector and required user interaction. No official patch is currently available, but running the tool inside a sandbox such as a container or VM is recommended to mitigate risk.