Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-45312— RAGFlow: Server-Side Template Injection in Prompt Generator leads to Remote Code Execution

Quick assessment

Affected
infiniflow ragflow
Exploitation
Public or AI PoC available; prioritize validation
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

RAGFlow是InfiniFlow开源的一个基于深度文档理解的开源 RAG 引擎。 RAGFlow 0.24.0及之前版本存在安全漏洞,该漏洞源于提示生成器中Jinja2模板注入,可能导致任何认证用户在服务器上执行任意操作系统命令。

CVSS 9.9 · Critical EPSS 0.52% · P42

Affected Version Matrix 1

VendorProduct Version RangeStatus
infiniflow ragflow <= 0.24.0 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-45312

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
RAGFlow: Server-Side Template Injection in Prompt Generator leads to Remote Code Execution
Source: CVE Program / CVE List V5
Vulnerability Description
RAGFlow is an open-source RAG (Retrieval-Augmented Generation) engine. In 0.24.0 and earlier, a Jinja2 template injection in the prompt generator (rag/prompts/generator.py) allows any authenticated user to execute arbitrary OS commands on the server. Any normal user can register, create a Canvas workflow with a DuckDuckGo + LLM component chain, and trigger the SSTI.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
CWE-1336
Source: CVE Program / CVE List V5
Vulnerability Title
RAGFlow 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
RAGFlow是InfiniFlow开源的一个基于深度文档理解的开源 RAG 引擎。 RAGFlow 0.24.0及之前版本存在安全漏洞,该漏洞源于提示生成器中Jinja2模板注入,可能导致任何认证用户在服务器上执行任意操作系统命令。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
infiniflow ragflow <= 0.24.0 -

II. Public POCs for CVE-2026-45312

# POC Description Source Link Shenlong Link
AI-Generated POC Premium
Qwen3.6-35B-A3B · 5365 chars
Pro+ exclusive includes:
Vulnerability reproduction recording (real sandbox build + trigger, exclusive)
In-depth vulnerability mechanism
Trigger conditions & impact
Full executable POC code
Exploit chain & mitigation
POC zip download
100+ AI POC generations per month

III. Intelligence Information for CVE-2026-45312

请登录查看更多情报信息。

Vendor Advisories for CVE-2026-45312 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2026-45312

No comments yet


Leave a comment