The issue is related to a Server Side Template Injection vulnerability in the `llama-cpp-python` package, which allows for remote code execution. This is due to the use of `jinja2.Environment` without proper sandboxing, enabling an attacker to inject malicious code. The vulnerability is exploited by modifying the `chat template` in the model's metadata, which is then rendered by the `Jinja2ChatFormatter` class. This allows an attacker to execute arbitrary code, potentially leading to system compromises. The estimated number of potentially affected devices is not specified, but it is mentioned that over 6,000 AI models on Hugging Face are vulnerable.