Quick answers
- Is CVE-2026-45312 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2026-45312 being exploited in the wild.
- How severe is CVE-2026-45312?
- Critical severity, with a CVSS score of 9.9, published 29 May 2026.
- Which products and versions are affected?
- InfiniFlow RAGFlow <= 0.24.0.
- Is there a fix for CVE-2026-45312?
- No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.
- How is CVE-2026-45312 attacked?
- It is attacked over the network, in a network appliance.
- Am I affected by CVE-2026-45312?
- Check whether you run InfiniFlow RAGFlow at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
Technical details
A Server-Side Template Injection (SSTI) exists in the citation_prompt() function within rag/prompts/generator.py. The application uses an unsandboxed Jinja2 environment to render user-controlled input extracted from <CITATION_GUIDELINES> XML tags in the LLM component's system prompt. An authenticated attacker can trigger this by creating a Canvas workflow using a DuckDuckGo and LLM component chain. Because the DuckDuckGo component populates retrieval chunks without requiring API keys or embedding models, the vulnerable rendering path is easily reached. Successful exploitation allows for arbitrary remote code execution (RCE) with the privileges of the server process.
Affected products
- infiniflow RAGFlow <= 0.24.0
Timeline
- 2026-05-09: advisory: Original GitHub security advisory published
- 2026-05-29: disclosed: CVE-2026-45312 published to NVD