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

- Severity: High 8.7 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.75%, higher than 56% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-03T21:41:54.291Z
- Modified: 2026-07-24T22:10:00.140Z
- Weaknesses: CWE-20, CWE-78, CWE-94, CWE-1336
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- infiniflow ragflow: <= 0.24.0; up to 0.24.0

## Every score

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

## References

- <https://github.com/infiniflow/ragflow/security/advisories/GHSA-vvwj-fvwh-4whx> (exploit, mitigation, vendor-advisory)

## Sources

- CVE List: [CVE-2026-28797](https://www.cve.org/CVERecord?id=CVE-2026-28797), CVE Terms of Use, modified 2026-04-06
- NVD: [CVE-2026-28797](https://nvd.nist.gov/vuln/detail/CVE-2026-28797), Public domain, modified 2026-07-24

---

Page: https://cve.day/CVE-2026-28797 · Whole record: https://cve.day/CVE-2026-28797.json · Rebuilt by cve.day 2026-11-25T22:59:17.925Z
