CVE-2024-34359
CRITICALEPSS 98th pctlDescription
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.
How to fix
No published remediation has been found for this vulnerability's affected products yet.
Mitigation guidance may be in the linked vendor advisories in the References section below.
TridentStack Control tracks known vulnerabilities across your Windows, macOS, and Linux fleet and shows the fix as soon as one is published. See how it works
CVSS v3 Vector
Exploitability
Impact
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
Exploit Intelligence
Very high risk: more likely to be exploited than 98% of all known CVEs.
References
Related Vulnerabilities
Other CWE-76 vulnerabilities, ordered by exploit likelihood. View all
| CVE | Severity | CVSS | EPSS | Exploited | Fix |
|---|---|---|---|---|---|
| CVE-2024-1883 | Medium | 6.3 | 61% | - | Fix |
| CVE-2023-0493 | Medium | 5.3 | 7.9% | - | Fix |
| CVE-2024-1882 | High | 7.2 | 1.4% | - | Fix |
| CVE-2026-28292 | Critical | 9.8 | 1.3% | - | Fix |
| CVE-2024-2952 | Critical | 9.8 | 1.3% | - | Fix |
| CVE-2026-11311 | High | 8.1 | 0.6% | - | Fix |
Common questions
How do I fix CVE-2024-34359?
No published fix for CVE-2024-34359 has been found yet. Check the linked vendor advisories for guidance as it becomes available.
Is CVE-2024-34359 being actively exploited?
Not that we know of. CVE-2024-34359 is not in the CISA Known Exploited Vulnerabilities catalog. Its EPSS score of 28.4% is the estimated probability that it will be exploited in the next 30 days. That is higher than 98% of all scored CVEs.
How severe is CVE-2024-34359?
CVE-2024-34359 has a CVSS v3 base score of 9.6, rated critical. CVSS rates the technical impact if the vulnerability is exploited, not how likely that is, so weigh it alongside the exploit-prediction score when you decide what to patch first.
Embed a live status badge for CVE-2024-34359
Markdown
[](https://tridentstack.com/cve/CVE-2024-34359)HTML
<a href="https://tridentstack.com/cve/CVE-2024-34359"><img src="https://tridentstack.com/cve/badge/CVE-2024-34359.svg" alt="CVE-2024-34359"></a>Find and fix vulnerabilities across your fleet
TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.
This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2024-11-21.