CVEBrief

Home / abetlen / llama-cpp-python / CVE-2024-34359

CVE-2024-34359: is it exploited, and which versions of abetlen llama-cpp-python are affected and fixed?

CVE-2024-34359 is an improper Neutralization of Equivalent Special Elements vulnerability in abetlen llama-cpp-python. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 12:38 UTC). Affected: llama-cpp-python from 0.2.30 before 0.2.72 (GitHub advisory GHSA-56xg-wfcc-g829). Fixed in 0.2.72 (GitHub advisory GHSA-56xg-wfcc-g829). Severity: Critical (9.7, CVSS 3.1, from GitHub_M).

Data checked December 3, 2026: last read CISA KEV December 3, 2026, 12:38 UTC, CVE record November 19, 2026, 07:11 UTC and NVD November 19, 2026, 07:29 UTC.

Exploited in the wild
Not in CISA KEV
KEV read December 3, 2026, 12:38 UTC
Affected
llama-cpp-python from 0.2.30 before 0.2.72
GitHub advisory GHSA-56xg-wfcc-g829
Fixed in
0.2.72
GitHub advisory GHSA-56xg-wfcc-g829
Severity
Critical 9.7
CVSS 3.1 from GitHub_M
Exploit odds (EPSS)
26.0% in 30 days
higher than 98% of CVEs; FIRST, December 2, 2026

What is CVE-2024-34359?

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

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.

From the CVE record by GitHub_M, last updated August 2, 2024, 02:51 UTC.

Which versions are affected, and which fix it?

VendorProductAffectedFixed or not affected from
abetlenllama-cpp-python>= 0.2.30, <= 0.2.71

As the CVE record by GitHub_M states it, last updated August 2, 2024. Version ranges are the CNA's; a version the record calls not affected is usually the fix.

Which packages are affected, and in which version is each fixed?

EcosystemPackageAffectedFixed inAdvisory
PyPIllama-cpp-python>= 0.2.30, < 0.2.720.2.72GHSA-56xg-wfcc-g829

GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated November 16, 2026. Summary: llama-cpp-python vulnerable to Remote Code Execution by Server-Side Template Injection in Model Metadata.

How severe is CVE-2024-34359?

ScoreVersionVectorSource
Critical 9.7CVSS 3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:HGitHub_M

Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.

What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.

Is CVE-2024-34359 exploited in the wild?

CISA KEV
Not listed (catalog 2026.11.30)
CISA SSVC
Exploitation: poc; automatable: no; technical impact: total (CISA ADP, May 15, 2024)
EPSS
26.0% probability of exploitation activity in the next 30 days, percentile 98.0 (FIRST EPSS, scores of December 2, 2026)

What kind of flaw is it?

Where are the vendor advisories and references?

When was it published, and where is the official record?

Reserved
May 2, 2024
Published
May 10, 2024, 17:07 UTC
CVE record updated
August 2, 2024, 02:51 UTC by GitHub_M
NVD
Deferred, last modified June 17, 2026, 07:33 UTC
Last checked
CVE list November 19, 2026, 07:11 UTC; NVD November 19, 2026, 07:29 UTC; KEV December 3, 2026, 12:38 UTC; EPSS December 2, 2026
Official record
cve.org · NVD

Questions about CVE-2024-34359

Is CVE-2024-34359 exploited in the wild?

Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 12:38 UTC. FIRST's EPSS gives it a 26.0% chance of exploitation activity in the next 30 days (scores of December 2, 2026).

Which versions of abetlen llama-cpp-python are affected by CVE-2024-34359?

llama-cpp-python from 0.2.30 before 0.2.72, per the GitHub advisory GHSA-56xg-wfcc-g829. The tables above give every range the sources list.

Which version fixes CVE-2024-34359?

0.2.72, per the GitHub advisory GHSA-56xg-wfcc-g829. Check the vendor's advisory before you rely on it.

How severe is CVE-2024-34359?

Critical (9.7, CVSS 3.1, from GitHub_M). The severity table above shows each score with its source.

Where is the official record of CVE-2024-34359?

The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.