CVE-2026-45312
CRITICALRAGFlow: Server-Side Template Injection in Prompt Generator leads to Remote Code Execution
Title source: cnaDescription
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.
References (1)
Core 1
Core References
X_Refsource_Confirm x_refsource_confirm
https://github.com/infiniflow/ragflow/security/advisories/GHSA-wpg4-h5g2-jxm6
Scores
CVSS v3
9.9
EPSS
0.0029
EPSS Percentile
20.8%
Attack Vector
NETWORK
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
CISA SSVC
Vulnrichment
Exploitation
poc
Automatable
no
Technical Impact
total
Details
CWE
CWE-1336
Status
published
Products (1)
infiniflow/ragflow
<= 0.24.0
Published
May 29, 2026
Tracked Since
May 29, 2026