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

    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

Introduced: 1 Dec 2023

CVE NOT AVAILABLE CWE-94 Open this link 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
Expand this section

Snyk

Recommended
7 high
  • Attack Vector (AV)
    Local
  • Attack Complexity (AC)
    High
  • Privileges Required (PR)
    Low
  • User Interaction (UI)
    None
  • Scope (S)
    Unchanged
  • Confidentiality (C)
    High
  • Integrity (I)
    High
  • Availability (A)
    High