What’s Vulnerable › Vulnerabilities
CVE-2026-45312: RAGFlow: Server-Side Template Injection in Prompt Generator leads to Remote Code Execution
- Severity: critical (CVSS 9.9 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.4% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-05-29 · updated 2026-07-21
- Weakness: CWE-1336
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
- infiniflow ragflow: through 0.24.0
References
- https://github.com/infiniflow/ragflow/security/advisories/GHSA-wpg4-h5g2-jxm6
- https://github.com/infiniflow/ragflow/security/advisories/GHSA-wpg4-h5g2-jxm6
Get alerted when CVE-2026-45312 or the next vulnerability affects your stack