CVE-2026-45312

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

No configuration.

History

21 Jul 2026, 12:10

Type Values Removed Values Added
Summary
  • (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.

02 Jun 2026, 02:16

Type Values Removed Values Added
References () https://github.com/infiniflow/ragflow/security/advisories/GHSA-wpg4-h5g2-jxm6 - () https://github.com/infiniflow/ragflow/security/advisories/GHSA-wpg4-h5g2-jxm6 -

29 May 2026, 13:16

Type Values Removed Values Added
New CVE

Information

Published : 2026-05-29 13:16

Updated : 2026-07-21 12:10


NVD link : CVE-2026-45312

Mitre link : CVE-2026-45312

CVE.ORG link : CVE-2026-45312


JSON object : View

Products Affected

No product.

CWE
CWE-1336

Improper Neutralization of Special Elements Used in a Template Engine