SecurityContext

CVE-2025-68700: RAGFlow - Command Injection

  • Cve: CVE-2025-68700
  • Name: RAGFlow - Command Injection
  • 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.
  • Impact: Low-privileged authenticated users can execute arbitrary system commands, leading to full server compromise.
  • Remediation: Upgrade to version 0.23.0 or later.
  • Vulnerability type: command_injection
  • Vulnerability impact: remote_code_execution
  • Requirement type: logged_in
  • Requirements: Attacker needs low-privileged authenticated user access
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 8.8
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.00724
  • Epss percentile: 0.54994
  • Assignee: [email protected]
  • Published at: 2025-12-31T22:15:49Z
  • Age in days: 328
  • Modified at: 2026-09-23T14:10:00Z
  • Patch available: yes
  • Public exploits total: 1
  • References total: 2
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2025-68700
  • Nvd status: analyzed
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: hackerone

Cwe

IdName
CWE-78Improper Neutralization of Special Elements used in an OS Command

Public exploits

UrlSourceAdded date
https://github.com/infiniflow/ragflow/security/advisories/GHSA-8xw3-v6c2-j84jnvd2025-12-31

References

UrlSourceTags
https://github.com/infiniflow/ragflow/commit/7a344a32f9f83529e12ca12f40f2657eb79fe811nvdPatch
https://github.com/infiniflow/ragflow/security/advisories/GHSA-8xw3-v6c2-j84jnvdExploit, Vendor Advisory

Products

ProductAffectedPlatform boundSourcesUrl
infiniflow:ragflow< 0.23.0nonvd/v1/products/infiniflow/ragflow

Projects

RepositoryLink kindsIndexedUrl
infiniflow/ragflowcommit, fix, security_advisoryyes/v1/repositories/infiniflow/ragflow

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Public exploit: yes
  • Public exploit count: 1
  • Public exploit first date: 2025-12-31
  • Remote: yes
  • Authentication required: yes
  • Exposed hosts: 2053
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports