PatchSiren

PatchSiren cyber security CVE debrief

CVE-2026-28797 Infiniflow CVE debrief

CVE-2026-28797 is a Server-Side Template Injection (SSTI) vulnerability in RAGFlow, an open-source RAG (Retrieval-Augmented Generation) engine. The vulnerability exists in the Agent workflow Text Processing (StringTransform) and Message components, which use Python's jinja2.Template (unsandboxed) to render user-supplied templates. This allows any authenticated user to execute arbitrary operating system commands on the server. The vulnerability has a CVSS score of 8.7 and is considered HIGH severity.

Vendor
Infiniflow
Product
Ragflow
CVSS
HIGH 8.7
CISA KEV
Not listed in stored evidence
Original CVE published
2026-04-03
Original CVE updated
2026-07-24
Advisory published
2026-04-03
Advisory updated
2026-07-24

Who should care

Users of RAGFlow version 0.24.0 and prior should be aware of this vulnerability and take immediate action to mitigate the risk. This includes Infiniflow users, developers, and administrators who manage RAGFlow deployments.

Technical summary

The vulnerability is caused by the use of unsandboxed jinja2.Template in RAGFlow's Agent workflow Text Processing (StringTransform) and Message components. This allows an authenticated user to inject malicious templates, leading to arbitrary operating system command execution on the server. The CVSS vector for this vulnerability is 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X.

Defensive priority

High priority should be given to patching or mitigating this vulnerability, as it allows for arbitrary operating system command execution on the server.

Recommended defensive actions

  • Apply patches or updates to RAGFlow version 0.24.0 and prior to prevent exploitation.
  • Implement compensating controls, such as monitoring and logging, to detect potential exploitation attempts.
  • Restrict access to the Agent workflow Text Processing (StringTransform) and Message components to only trusted users.
  • Consider implementing additional security measures, such as input validation and sanitization, to prevent similar vulnerabilities.
  • Perform a thorough review of system logs to identify potential exploitation attempts.
  • Conduct an asset inventory to identify all systems that may be affected by this vulnerability.
  • Establish a rollback change window to quickly recover from potential exploitation.

Evidence notes

The CVE record was published on 2026-04-03T22:16:26.320Z and was last modified on 2026-07-24T22:10:00.140Z. The NVD entry is currently Analyzed. The vulnerability is tracked under CWE-20, CWE-78, CWE-94, and CWE-1336.

Sources and references

Verified primary and authoritative sources

  • CVE-2026-28797 CVE Program record

    Publisher, destination, and source semantics verified

    URL: https://www.cve.org/CVERecord?id=CVE-2026-28797

    CVE Program - Official CVE Program record with source-provided CVE metadata.

  • CVE-2026-28797 NVD vulnerability detail

    Publisher, destination, and source semantics verified

    URL: https://nvd.nist.gov/vuln/detail/CVE-2026-28797

    NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.

Supplemental references

Methodology and review provenance

AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.