CVE Tools

CVE-2025-68700

RAGFlow Remote Code Execution Vulnerability

Published: Dec 31, 2025Updated: Jan 6, 2026 Sources: CVE List NVDCWE-78

Description

RAGFlow is an open-source RAG (Retrieval-Augmented Generation) engine. In versions prior to 0.23.0, a low-privileged authenticated user (normal login account) can execute arbitrary system commands on the server host process via the frontend Canvas CodeExec component, completely bypassing sandbox isolation. This occurs because untrusted data (stdout) is parsed using eval() with no filtering or sandboxing. The intended design was to "automatically convert string results into Python objects," but this effectively executes attacker-controlled code. Additional endpoints lack access control or contain inverted permission logic, significantly expanding the attack surface and enabling chained exploitation. Version 0.23.0 contains a patch for the issue.

In plain language

AI Act now

CVE-2025-68700 is a serious security flaw in RAGFlow where a normal logged-in user can run commands on the server; a typical small business running RAGFlow should treat this as urgent and upgrade to version 0.23.0 or later.

Executive summary

In RAGFlow, pre-0.23.0 versions allow a low-privileged authenticated user to achieve remote code execution on the server host process via the frontend Canvas CodeExec component, where untrusted output is parsed unsafely (eval-style parsing) with insufficient sandboxing/access control, enabling full command execution; this is reported as being exploited in the wild by the Qilin actor.

If affected, business impact
Full server command executionData theft from the hostService disruption or downtimeRisk of ransomware deployment

What to do now

  1. Check which RAGFlow version you are running (and confirm whether external users can log in to it).
  2. If you are on a version earlier than 0.23.0, upgrade RAGFlow to 0.23.0 or later using the vendor fix linked in the security advisory/commit.
  3. After upgrading, review application and server logs for suspicious command execution activity around the RAGFlow Canvas CodeExec usage.
  4. If you cannot upgrade immediately, restrict access so only trusted admins can reach RAGFlow (block unneeded public access and limit who can log in), and monitor closely for repeated CodeExec attempts.
Patch / advisory Some work to apply

CVSS Vector Breakdown

AV:NAC:LPR:LUI:NS:UC:HI:HA:H
Exploitability
AV:NAttack Vector
Network
AC:LAttack Complexity
Low
PR:LPrivileges Required
Low
UI:NUser Interaction
None
Scope
S:UScope
Unchanged
Impact
C:HConfidentiality
High
I:HIntegrity
High
A:HAvailability
High

Weaknesses

Affected Products

infiniflow
commercialaka ragflow, infiniflow/ragflow

Exploitability

Official Patch Available

Attack Graph

Products CVE Techniques Tactics

Click technique nodes for MITRE ATT&CK details · drag to pan · Ctrl/ + scroll to zoom, or go fullscreen.

MITRE ATT&CK

1 technique
Execution
View detailed technique mapping

References

1

Unlock Complete Vulnerability Intelligence

Get the full picture for CVE-2025-68700 and every CVE in our database. Create a free account — no credit card required.

Create Free Account
Plain-language analysis
Impact assessment and exploitation scenario in plain English
Attack graph visualization
Interactive attack path and kill chain mapping
Exploit details & PoC links
ExploitDB, Metasploit, GitHub PoCs with direct links
Nuclei scanner templates
Ready-to-use vulnerability scanner templates
Full remediation guide
Patch instructions, workarounds, and compliance impact
Interactive AI chat
Ask questions about this vulnerability in natural language
Related vulnerabilities
Semantically similar CVEs and attack patterns
REST API & MCP access
Integrate vulnerability data into your workflows