CVE-2026-45312
JSON

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 packageVersionsReported by
infiniflow ragflow<= 0.24.0CVE List

Classification

CWE-1336

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

SourceRecordLicence
CVE ListCVE-2026-45312 changed 2026-06-02CVE Terms of Use
NVDCVE-2026-45312 changed 2026-07-21Public domain