BreachSpiderVerified, not vibes

CVE-2024-34359 in Class products

Critical 9.6

llama-cpp-python is the Python bindings for llama.cpp. `llama-cpp-python` depends on class `Llama` in `llama.py` to load `.gguf` llama.cpp or Latency Machine Learning Models. The `__init__` constructor built in the `Llama` takes several parameters to configure the loading and running of the model. Other than `NUMA, ...

Affects 0 products from 4 vendors. Facts below cite their sources.

CVSS 3.19.6
EPSS1.3%
EPSS percentile72th
FixUnknown

Remotely exploitable over the network, low complexity, no authentication required, requires user interaction, can impact systems beyond the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.

Affected products and versions

VendorProductAffected versions
Class — —
Python — —
Sandbox — —
Takes — —

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

No official vendor advisory link on record. See the CVE record.

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official description

llama-cpp-python is the Python bindings for llama.cpp. `llama-cpp-python` depends on class `Llama` in `llama.py` to load `.gguf` llama.cpp or Latency Machine Learning Models. The `__init__` constructor built in the `Llama` takes several parameters to configure the loading and running of the model. Other than `NUMA, LoRa settings`, `loading tokenizers,` and `hardware settings`, `__init__` also loads the `chat template` from targeted `.gguf` 's Metadata and furtherly parses it to `llama_chat_format.Jinja2ChatFormatter.to_chat_handler()` to construct the `self.chat_handler` for this model. Nevertheless, `Jinja2ChatFormatter` parse the `chat template` within the Metadate with sandbox-less `jinja2.Environment`, which is furthermore rendered in `__call__` to construct the `prompt` of interaction. This allows `jinja2` Server Side Template Injection which leads to remote code execution by a carefully constructed payload.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2024-34359
BreachSpider IDBS-2024-GLOBAL-193643-C
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
Published2024-05-14
Last modified2026-06-17
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-76: CWE-76

Analysis AI-written, not human-reviewed

CVE-2024-34359 affects llama-cpp-python, specifically the Llama class in llama.py, which is used to load .gguf llama.cpp or Latency Machine Learning Models. The vulnerability could allow an attacker to execute arbitrary code due to improper validation of input parameters in the __init__ constructor.

An attacker could exploit this vulnerability by providing malicious input to the __init__ constructor of the Llama class, potentially leading to arbitrary code execution. The vulnerability arises from insufficient validation of parameters such as NUMA, LoRa settings, loading tokenizers, and hardware settings.

Questions

What is CVE-2024-34359?

CVE-2024-34359 affects llama-cpp-python, specifically the Llama class in llama.py, which is used to load .gguf llama.cpp or Latency Machine Learning Models. The vulnerability could allow an attacker to execute arbitrary code due to improper validation of input parameters in the __init__ constructor.

What is the CVSS score for CVE-2024-34359?

CVE-2024-34359 has CVSS 9.6 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H. EPSS: 1.3%.

Is CVE-2024-34359 actively exploited?

No confirmed active exploitation of CVE-2024-34359 as of 2026-09-25.

How do I remediate CVE-2024-34359?

Priority: IMMEDIATE.

What systems are affected by CVE-2024-34359?

CVE-2024-34359 affects Class; Python; Sandbox; Takes.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Class","product":"EDS-518A","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.