---
title: "CVE-2026-28797: RAGFlow: Server-Side Template Injection (SSTI) leading to Remote Code Execution (RCE) in Agent \"Text Processing\" Component"
url: https://erroneo.us/security/cve/CVE-2026-28797/
description: "CVE-2026-28797 (infiniflow ragflow): RAGFlow is an open-source RAG (Retrieval-Augmented Generation) engine. In versions 0.24.0 and prior, a Server-Side…"
type: vulnerability-record
section: "Security Digest"
date_published: 2026-04-03
date_modified: 2026-11-16
publisher: erroneo.us
author: erroneo.us Security Desk
cve: "CVE-2026-28797"
kev: false
cvss: 8.7
epss: 0.00596
license: All rights reserved. Quote with attribution and a link.
---

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

**Signal:** Normal patch cycle. No exploitation signal; fix it in your next routine update if you are affected. (Computed from CISA KEV, EPSS and CVSS; not an editorial verdict.)

## Should you act?

- Not in CISA KEV , but CISA’s SSVC assessment records a public proof-of-concept, so attack code exists.
- EPSS 0.6% , percentile 49: FIRST’s model estimates a 0.6% chance of exploitation activity in the next 30 days, higher than 49% of all scored CVEs (low). EPSS is a probability, not a verdict.
- Needs an account (low (any account)). Exposure depends on who can log in.
- Editorial verdict: Check exposure. ARTEX AI Agents Hunt Exposed LLM Gateways for API Keys — Nothing here is a new bug: automated agents are finding self-hosted AI gateways and app builders that are exposed with default keys, unfinished setups or old Langflow and RAGFlow versions, so the fix is basic hardening and key rotation.

## What it is

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 products (CVE record)

- infiniflow ragflow: <= 0.24.0

## Severity

- GitHub_M CVSS 4.0: 8.7 `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`
- CISA-ADP CVSS 3.1: 8.8 `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## Exploitation

- CISA KEV: not listed (no confirmed in-the-wild exploitation known to CISA).
- CISA SSVC assessment: exploitation poc , automatable no , technical impact total .
- FIRST EPSS (model of 2026-11-21): 0.60% probability of exploitation activity in the next 30 days; percentile 49.

## Sources

- [CVE.org record CVE-2026-28797](https://www.cve.org/CVERecord?id=CVE-2026-28797)
- [NVD entry CVE-2026-28797](https://nvd.nist.gov/vuln/detail/CVE-2026-28797)
- [github.com](https://github.com/infiniflow/ragflow/security/advisories/GHSA-vvwj-fvwh-4whx)

---
Source page: https://erroneo.us/security/cve/CVE-2026-28797/ · Security Digest: https://erroneo.us/security/ · More: https://erroneo.us/llms.txt
