CVE-2026-28797 Code injection in ragflow

High 8.7 Published Updated

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.

Weakness: CWE-94, CWE-78, CWE-20, CWE-1336

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.

Sources

Also known as GHSA-vvwj-fvwh-4whx.

Is CVE-2026-28797 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free