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

Fri, 29 May 2026 12:45:00 +0000

Type Values Removed Values Added
Description 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.
Title RAGFlow: Server-Side Template Injection in Prompt Generator leads to Remote Code Execution
Weaknesses CWE-1336
References
Metrics cvssV3_1

{'score': 9.9, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-05-29T12:24:07.996Z

Reserved: 2026-05-11T20:50:30.538Z

Link: CVE-2026-45312

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-05-29T13:16:22.770

Modified: 2026-05-29T13:16:22.770

Link: CVE-2026-45312

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-05-29T13:30:44Z