CVE-2026-28797 PUBLISHED

RAGFlow: Server-Side Template Injection (SSTI) leading to Remote Code Execution (RCE) in Agent "Text Processing" Component

Assigner: GitHub_M
Reserved: 03.03.2026 Published: 03.04.2026 Updated: 03.04.2026

RAGFlow is an open-source RAG (Retrieval-Augmented Generation) engine. In versions 0.24.0 and prior, a Server-Side Template Injection (SSTI) vulnerability exists in RAGFlow's Agent workflow Text Processing (StringTransform) and Message components. These components use Python's jinja2.Template (unsandboxed) to render user-supplied templates, allowing any authenticated user to execute arbitrary operating system commands on the server. At time of publication, there are no publicly available patches.

Metrics

CVSS Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
CVSS Score: 8.7

Product Status

Vendor infiniflow
Product ragflow
Versions
  • Version <= 0.24.0 is affected

References

Problem Types

  • CWE-20: Improper Input Validation CWE
  • CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') CWE
  • CWE-94: Improper Control of Generation of Code ('Code Injection') CWE
  • CWE-1336: Improper Neutralization of Special Elements Used in a Template Engine CWE