Skip to content
CriticalVulnerability

CVE-2026-45312: RAGFlow template injection in prompt generator allows OS command execution

Identifier
CVE-2026-45312
Published
Record updated
View JSON
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.5%

Summary

CVE-2026-45312 affects RAGFlow, an open-source RAG engine, in version 0.24.0 and earlier. A Jinja2 template injection in the prompt generator (rag/prompts/generator.py) lets any authenticated user 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 flaw. The weakness is classified as CWE-1336.

Mitigation

The source does not state a fix yet. Check the original advisory for updates.