Vulnerability 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.
CVSS Score
CRITICAL
Related Weaknesses (CWE)
References
- https://github.com/infiniflow/ragflow/security/advisories/GHSA-wpg4-h5g2-jxm6
- https://github.com/infiniflow/ragflow/security/advisories/GHSA-wpg4-h5g2-jxm6
FAQ
What is CVE-2026-45312?
CVE-2026-45312 is a vulnerability with a CVSS score of 9.9 (CRITICAL). 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 us...
How severe is CVE-2026-45312?
CVE-2026-45312 has been rated CRITICAL with a CVSS base score of 9.9/10. This is considered a critical vulnerability requiring immediate attention.
Is there a patch for CVE-2026-45312?
Check the references section above for vendor advisories and patch information. Review vendor security bulletins for remediation guidance.