CVE-2026-28797: Authenticated Server-Side Template Injection in RAGFlow Agent Workflows
- Vendor
- Infiniflow
CVE-2026-28797 is a server-side template injection vulnerability affecting RAGFlow versions 0.24.0 and earlier. The Agent workflow Text Processing (StringTransform) and Message components render user-supplied templates using Python's unsandboxed jinja2.Template. An authenticated user can submit a crafted template that accesses Python objects and executes arbitrary operating system commands in the RAGFlow service context. Administrative privileges and additional user interaction are not required.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation compromises the confidentiality, integrity, and availability of resources accessible to the RAGFlow service. Attackers can execute commands, read application data and provider credentials, modify application behavior, and disrupt the service. Further compromise depends on the service account's privileges, accessible secrets, and network access; host-level administrative access is not inherently guaranteed.
Mitigation
If you can’t patch tonight, do this now.
Until remediation is verified, disable or restrict access to the affected workflow components and prevent untrusted users from submitting templates. Disable public self-registration and limit application access to trusted users through network and authentication controls. Run RAGFlow with least privilege, restrict outbound connectivity, and monitor for application-originated shell execution, unexpected application modifications, and unusual access to secrets. Rotate exposed credentials if compromise is suspected.
Remediation
Patch, then assume compromise.
Upgrade to a release that replaces unsandboxed template rendering in both affected components with appropriately sandboxed rendering. RAGFlow 0.25.0, released April 21, 2026, is reported to introduce the recommended sandbox, although the original advisory lists no patched version. Verify that the deployed release protects both StringTransform and Message template evaluation rather than relying solely on the advisory's patch status.
Exploits
1 exploit validated by Mallory's analysis.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
Frequently asked questions
- Is CVE-2026-28797 exploited in the wild?
- Yes. As of Nov 28, 2026, Mallory has reports of exploitation in the wild.
- Is there a public exploit for CVE-2026-28797?
- Yes. Mallory tracks 1 public exploit or proof of concept for CVE-2026-28797, the earliest disclosed Aug 11, 2026.
- Is there a patch for CVE-2026-28797?
- Upgrade to a release that replaces unsandboxed template rendering in both affected components with appropriately sandboxed rendering. RAGFlow 0.25.0, released April 21, 2026, is reported to introduce the recommended sandbox, although the original advisory lists no patched version.
- What products are affected by CVE-2026-28797?
- Infiniflow Ragflow.
- How severe is CVE-2026-28797?
- CVE-2026-28797 has a CVSS v4 score of 8.7 (High) and an EPSS score of 0.59% (42nd percentile) as of Nov 28, 2026.
Recent activity
15 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.