CVE-2024-34359
Last modified
CVE-2024-34359 is a critical-severity vulnerability rated 9.6/10 on the CVSS scale. 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. EPSS estimates a 28.42% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
Weakness Enumeration
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2024-34359?
How severe is CVE-2024-34359?
How do I fix CVE-2024-34359?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2024
- CVE-2024-34353The matrix-sdk-crypto crate, part of the Matrix Rust SDK pro…5.5
- CVE-2024-34354CMSaaSStarter is a SaaS template/boilerplate built with Svel…6.5
- CVE-2024-34355TYPO3 is an enterprise content management system. Starting i…5.4
- CVE-2024-34356TYPO3 is an enterprise content management system. Starting i…5.4
- CVE-2024-34357TYPO3 is an enterprise content management system. Starting i…5.4
- CVE-2024-34358TYPO3 is an enterprise content management system. Starting i…5.3
- CVE-2024-3436A vulnerability was found in SourceCodester Prison Managemen…7.2
- CVE-2024-34360go-spacemesh is a Go implementation of the Spacemesh protoco…8.2
- CVE-2024-34361Pi-hole is a DNS sinkhole that protects devices from unwante…8.8
- CVE-2024-34362Envoy is a cloud-native, open source edge and service proxy.…5.9
- CVE-2024-34363Envoy is a cloud-native, open source edge and service proxy.…7.5
- CVE-2024-34364Envoy is a cloud-native, open source edge and service proxy.…6.5
Are you affected by CVE-2024-34359?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
