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

Published Apr 3, 2026
·
Updated

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.

Affected Software

2 affected components
RAGFlow RAGFlow<=0.24.0
infiniflow ragflow<=0.24.0

Event History

Apr 3, 2026
CVE Published
via MITRE·09:41 PM
Data Sourced
via MITRE·09:41 PM
DescriptionWeakness
Data Sourced
via NVD·10:16 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-28797?

CVE-2026-28797 has a high severity rating of 8.7 according to the CVSS score.

2

How do I fix CVE-2026-28797?

To mitigate CVE-2026-28797, update RAGFlow to version 0.25.0 or later, which addresses the Server-Side Template Injection vulnerability.

3

What components are affected by CVE-2026-28797?

CVE-2026-28797 affects the Text Processing (StringTransform) and Message components in RAGFlow.

4

What type of vulnerability is CVE-2026-28797?

CVE-2026-28797 is categorized as a Server-Side Template Injection (SSTI) vulnerability leading to Remote Code Execution (RCE).

5

Who is at risk from CVE-2026-28797?

Users of RAGFlow versions 0.24.0 and prior are at risk of exploitation from CVE-2026-28797.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203