Arbitrary Code Execution Affecting llama-cpp-python package, versions [,0.2.12)


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

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 Learn

Learn about Arbitrary Code Execution vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-LLAMACPPPYTHON-6133250
  • published20 Dec 2023
  • disclosed1 Dec 2023
  • creditmtasic85

Introduced: 1 Dec 2023

CVE NOT AVAILABLE CWE-94  (opens in a new tab)

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.

CVSS Scores

version 3.1