{"id":"CVE-2026-45312","aliases":["CVE-2026-45312"],"related":[],"kind":"vulnerability","state":"published","title":"RAGFlow: Server-Side Template Injection in Prompt Generator leads to Remote Code Execution","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2026-05-29T12:24:07.996Z","modified":"2026-07-21T12:10:00.090Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","score":9.9,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","score":9.9,"rating":"CRITICAL"}],"cwes":["CWE-1336"],"affected":[{"ranges":[{"version":"<= 0.24.0","status":"affected"}],"vendor":"infiniflow","product":"ragflow","source":"cvelist"}],"references":[{"url":"https://github.com/infiniflow/ragflow/security/advisories/GHSA-wpg4-h5g2-jxm6","tags":["exploit","x-refsource-confirm"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"total","date":"2026-06-02T01:01:26.376Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-45312","url":"https://www.cve.org/CVERecord?id=CVE-2026-45312","licence":"CVE Terms of Use","modified":"2026-06-02T01:02:42.683Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-45312","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-45312","licence":"Public domain","modified":"2026-07-21T12:10:00.090Z"}],"updatedAt":"2026-11-25T22:59:23.305Z","epss":{"score":0.00447,"percentile":0.40613,"date":"2026-12-01T12:00:22.000Z"}}