CVE-2026-28797: Infiniflow RAGFlow SSTI in Agent workflow components

CVE-2026-28797 · Severity: high · CVSS 8.8 · Published 2026-04-03

RAGFlow is an open-source engine used to build AI applications that connect large language models to private data. A security flaw allows any registered user to execute malicious commands on the server by submitting specially crafted text templates through the 'Agent' workflow feature. This could lead to a total system takeover, including the theft of sensitive documents, database credentials, and API keys.

Technologies: InfiniFlow RAGFlow. Vendors: InfiniFlow.

Quick answers

Is CVE-2026-28797 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-28797 being exploited in the wild.
How severe is CVE-2026-28797?
High severity, with a CVSS score of 8.8, published 3 April 2026.
Which products and versions are affected?
InfiniFlow RAGFlow <= 0.24.0.
Is there a fix for CVE-2026-28797?
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-28797 attacked?
It is attacked over the network, in a network appliance.
Am I affected by CVE-2026-28797?
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) vulnerability exists in RAGFlow's Agent workflow 'Text Processing' (StringTransform) and 'Message' components. The root cause is the use of Python's unsandboxed 'jinja2.Template' class to render user-supplied strings from the 'Script' and 'Content' fields. An authenticated attacker can bypass the simple '{{' check and use Jinja2 globals (e.g., cycler or namespace) to access the 'os' module and execute arbitrary shell commands. This allows for full remote code execution (RCE) with the privileges of the application process. As of the advisory date, no official patches are available, though migrating to Jinja2's 'SandboxedEnvironment' is the recommended mitigation.

Affected products

  • Infiniflow RAGFlow <= 0.24.0

Timeline

  • 2026-04-01: advisory: GitHub Security Advisory published
  • 2026-04-03: disclosed: NVD publication date

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.