CVE-2026-45312
CWE-1336Published: May 29, 2026· Updated: Jun 2, 2026
Official 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.
Risk Analysis
This critical vulnerability in RAGFlow allows any authenticated user to execute arbitrary operating system commands on the server. The high CVSS score of 9.9 indicates a severe risk, as an attacker can gain full control over the system. This flaw is particularly concerning because even a normal user account can be leveraged for exploitation.
No public exploit is currently known for this vulnerability. However, its remote exploitability (AV:N) and low attack complexity make it a significant threat if an exploit were to emerge.
Upgrade RAGFlow to a version past 0.24.0 to address the Jinja2 template injection. Implement strong access controls and monitor for unusual activity from authenticated users.
Technical Analysis
CVE-2026-45312 can be exploited remotely over the network without requiring physical or adjacent access, significantly expanding the attack surface for threat actors.
Exploitation requires low privileges, which limits the exposure to scenarios where an attacker has already gained initial access.
A successful exploit results in complete confidentiality breach (data exposure), full integrity compromise (data manipulation), availability disruption (denial of service), with a CVSS base score of 9.9.
The vulnerability has a "Changed" scope, meaning successful exploitation can impact components beyond the vulnerable component itself — such as the host operating system or adjacent services.
CVSS v3.1 Vector Breakdown
Exploit & PoC Resources
All References (2)
Quick Facts
Related CVEs (CWE-1336)
Recommended Actions
- →Apply vendor patches immediately
- →Monitor CVE-2026-45312 in threat intel feeds
- →Review IDS/IPS signatures for exploitation attempts