Incident report

GGUF Chat Template Server-Side Template Injection via Jinja2 Evaluation

Public CVE advisory documenting arbitrary code execution when loading crafted .gguf model metadata whose embedded Jinja2 chat template escaped unsandboxed template evaluation.

Incident record

Reported
Severity
Critical
Vector
Supply Chain
Affected system type
Open-Weight GGUF Inference Runtimes
Reference
CVE-2024-34359
Reference URI
https://nvd.nist.gov/vuln/detail/CVE-2024-34359

Inspect in Interactive Incidents Hub

Defensive lesson

Render model chat templates exclusively with SandboxedEnvironment or deterministic string formatters and verify checksums of third-party GGUF artifacts.

Referenced techniques