9.9critical
RAGFlow: Server-Side Template Injection in Prompt Generator leads to Remote Code Execution
- Severity
- 9.9critical CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.45% (higher than 40% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| infiniflow ragflow | <= 0.24.0 | CVE List |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total.
What each source says
CVE List
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.
NVD (es)
RAGFlow es un motor RAG (Generación Aumentada por Recuperación) de código abierto. En la versión 0.24.0 y anteriores, una inyección de plantilla Jinja2 en el generador de prompts (rag/prompts/generator.py) permite a cualquier usuario autenticado ejecutar comandos arbitrarios del sistema operativo en el servidor. Cualquier usuario normal puede registrarse, crear un flujo de trabajo de Canvas con una cadena de componentes DuckDuckGo + LLM, y activar la SSTI.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-45312 changed 2026-06-02 | CVE Terms of Use |
| NVD | CVE-2026-45312 changed 2026-07-21 | Public domain |