Skip to content

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

CriticalCVSS 9.9 EPSS 0.45%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: total

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.

Upgrade path

1 package: 0 fixed.

PackageAffectedFixed inStatus
infiniflow ragflow = <= 0.24.0 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
infiniflow ragflow = <= 0.24.0 No fix listed

References