CVE-2026-45312CWE-1336

RAGFlow: Server-Side Template Injection in Prompt Generator leads to Remote Code Execution

Critical · published May 29, 2026

CVSS v3.1
9.9
EPSS
1%
Percentile
43.2
In the wild
Unconfirmed
What it is

RAGFlow is an open-source RAG (Retrieval-Augmented Generation) engine. In 0.24.0 and earlier, a Jinja2 template injection in the prompt generator (rag/prompts/generator.py) allows any authenticated user to execute arbitrary OS commands on the server. Any normal user can register, create a Canvas workflow with a DuckDuckGo + LLM component chain, and trigger the SSTI.

The record
Technical detail
CVSS v3.1
9.9 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00518 · 43.2th percentile
Weakness
CWE-1336 · Improper Neutralization of Special Elements Used in a Template Engine
Published
2026-05-29T12:24Z
EPSS history
Timeline
  • 29 MAY 12:24Z
    RAGFlow: Server-Side Template Injection in Prompt Generator leads to Remote Code Execution
    cvelistv5