CVE-2026-28797 Code injection in ragflow
Authenticated users can execute arbitrary OS commands via SSTI in RAGFlow's Text Processing components due to unsandboxed Jinja2 template rendering.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2026-28797?
CVE-2026-28797 is a high-severity code injection vulnerability in infiniflow ragflow, published on 3 Apr 2026. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
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.
Which versions are affected by CVE-2026-28797?
It affects 1 product.
Products include Infiniflow Ragflow.
How do I fix CVE-2026-28797?
No fix has been published for CVE-2026-28797 yet. Limit exposure of the affected software until one is available.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2026-28797 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-28797 exists.
Public exploit code: 1 proofs of concept on GitHub.
Other vulnerabilities in infiniflow ragflow
- CVE-2026-24770 RAGFlow Affected by Zip Slip Remote Code Execution (RCE) in MinerUParser
- CVE-2024-12433 Remote Code Execution in infiniflow/ragflow
- CVE-2025-48187 Auth bypass in RAGFlow
- CVE-2025-69286 RAGFlow has Predictable Token Generation Leading to Authentication Bypass Vulnerability
- CVE-2025-27135 RAGFlow SQL Injection vulnerability
Sources
Also known as GHSA-vvwj-fvwh-4whx.