Skip to content
OpenAdvisories
Critical · 9.9 CVE-2026-45312 EUVD-2026-33284

RAGFlow: Server-Side Template Injection in Prompt Generator leads to Remote Code Execution

Published May 29, 2026 · Updated Jun 2, 2026 · 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 products

VendorProductAffectedFixed
infiniflow ragflow <= 0.24.0 —

References