{"id":"CVE-2026-28797","published":"2026-04-03T21:41:54Z","modified":"2026-04-06T18:57:26Z","title":"RAGFlow: Server-Side Template Injection (SSTI) leading to Remote Code Execution (RCE) in Agent \"Text Processing\"…","vendor":"infiniflow","product":"ragflow","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.7,"severity":"HIGH","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00594,"percentile":0.42439,"provenance":"source"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"},{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"},{"id":"CWE-94","name":"Improper Control of Generation of Code"},{"id":"CWE-1336","name":"Improper Neutralization of Special Elements Used in a Template Engine"}],"references":[{"url":"https://github.com/infiniflow/ragflow/security/advisories/GHSA-vvwj-fvwh-4whx","tags":["x_refsource_CONFIRM"]}],"priority":{"score":19.6,"factors":[{"name":"EPSS percentile","points":8.49},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":6.09}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2026-08-11","earliestUrl":"https://github.com/qianlijaingshan/ragflow-audit","repos":[{"name":"qianlijaingshan/ragflow-audit","url":"https://github.com/qianlijaingshan/ragflow-audit","stars":1,"created":"2026-08-11"}]},"first":{"date":"2026-08-11","source":"PoC-in-GitHub","url":"https://github.com/qianlijaingshan/ragflow-audit"},"provenance":"source"},"vendorSlug":"infiniflow","affectedVersions":[{"vendor":"infiniflow","product":"ragflow","versions":["<= 0.24.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-04-06T18:56:48.455858Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-18876","exploited":false,"provenance":"source"}}