PyPI: llama-cpp-python

CVE-2024-34359

Safety vulnerability ID: SFTY-20240514-19433

Safety legacy ID: pyup.io-70912

Llama-cpp-python version 0.2.72 addresses a security issue by fixing a Remote Code Execution vulnerability caused by Server-Side Template Injection in Model Metadata.

Created at: Jul 5, 2026Updated at: Jul 5, 2026

Overview

llama-cpp-python vulnerable to Remote Code Execution by Server-Side Template Injection in Model Metadata

Advisory

Llama-cpp-python version 0.2.72 addresses a security issue by fixing a Remote Code Execution vulnerability caused by Server-Side Template Injection in Model Metadata.

Affected Package

Affecting llama-cpp-python package, versions>=0.2.30,<=0.2.71

Also affects

---

How to Fix

Upgradellama-cpp-pythonto0.2.72or higher.

Mitigation and Workarounds

---

Vulnerable Functions

Functions linked to known vulnerabilities.

Vulnerable function data is available for Enterprise customers

Book a call with us to see Safety in action.

Safety

Verified by Safety

Our Cybersecurity Intelligence Team reviewed this vulnerability. We combine public data with our own research to find issues not yet reported to public sources.

Learn more