CVE-2024-34359Active Exploitation

LOWCVSS 9.6 · CRITICAL

Exploitation ongoing with high activity in latest observed window (1 mentions)

Immediate actions

  • Prioritize remediation for affected systems immediately
  • Assume compromise if assets are exposed
  • Track advisory updates for patch or workaround availability

Recommended action window: Immediate (within 24h)

NVD 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.

3.5/ 10 priority

Sources & remediation

Weakness type (CWE)
CWE-76

Priority

LOW

Exploitation

ACTIVE

PoC

NONE

Patch

NONE

Momentum

NONE

Threat summary

  • Active exploitation appears in 1 classified signals
  • 1 mentions across 1 observed day

What's happening

  • Active exploitation reported across 1 signal
  • Technical details provided in 1 signal
  • 1 total mentions across 1 day

Deep dive

Activity timeline1 mentions / 1d
00111Mentions · 2026-06-25: 1Active Exploitation · 2026-06-25: 1Technical Details · 2026-06-25: 106-25
Signal classification1 categories
Active Exploitation
1100.0%
Full discourse1 post
  • paraxa@paraxiaQQ
    Active Exploitation

    the sweep: 185,345 gguf models, 130,592 real chat templates, 186 architectures. 24 carry a genuinely dangerous construct. 0 false positives. • 20 are ssti → rce in a vulnerable loader (the CVE-2024-34359 "llama drama" class): real os.system reverse shells sitting in the chat template. • 4 are behavioral backdoors. the quiet ones.

    Post summary

    The post reports that 20 chat templates contain SSTI‑to‑RCE payloads that are already executing reverse shells (CVE‑2024‑34359), confirming active exploitation and zero false positives.

    1000053
    3 followersView on X

Explore more