Arbitrary Code Execution Affecting llama-cpp-python package, versions [,0.2.12)
Threat Intelligence
Exploit Maturity
Proof of concept
Do your applications use this vulnerable package?
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applications- Snyk ID SNYK-PYTHON-LLAMACPPPYTHON-6133250
- published 20 Dec 2023
- disclosed 1 Dec 2023
- credit mtasic85
How to fix?
Upgrade llama-cpp-python
to version 0.2.12 or higher.
Overview
llama-cpp-python is a Python bindings for the llama.cpp library
Affected versions of this package are vulnerable to Arbitrary Code Execution due to improper Llama._create_completion
suffix parameter check, allows an attacker to send string-like object which could actually lead to exploitation of this vulnerability.
References
CVSS Scores
version 3.1