{"id":"CVE-2026-45312","published":"2026-05-29T12:24:07Z","modified":"2026-06-02T01:02:42Z","title":"RAGFlow: Server-Side Template Injection in Prompt Generator leads to Remote Code Execution","vendor":"infiniflow","product":"ragflow","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.9,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00447,"percentile":0.39755,"provenance":"source"},"cwes":[{"id":"CWE-1336","name":"Improper Neutralization of Special Elements Used in a Template Engine"}],"references":[{"url":"https://github.com/infiniflow/ragflow/security/advisories/GHSA-wpg4-h5g2-jxm6","tags":["x_refsource_CONFIRM"]}],"priority":{"score":14.9,"factors":[{"name":"EPSS percentile","points":7.95},{"name":"CVSS severity","points":6.93}]},"vendorSlug":"infiniflow","affectedVersions":[{"vendor":"infiniflow","product":"ragflow","versions":["<= 0.24.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-06-02T01:01:26.376594Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-33284","exploited":false,"provenance":"source"}}