CVE-2026-51897

Improper Access Control in RAGFlow Evaluation API Allows Arbitrary Code Execution

Published Oct 1, 2026 CVSS 3.1 · 9.8 Critical EPSS < 1% KEV · Not listed
Description
RAGFlow 0.24.0 contains improper access control in get_dataset (api/apps/evaluation_app). Depending on the exposed entry, an attacker can trigger attacker-controlled code or command execution

Analysis

AI-generated

Technical impact

RAGFlow version 0.24.0 contains an improper access control flaw in its get_dataset function of the evaluation API. The defect allows an unauthenticated user who can reach the /api/apps/evaluation_app endpoint to trigger attacker‑controlled code or command execution. This results in full code execution on the host running the service, compromising confidentiality, integrity, and availability. The flaw is described by CWE‑284 (Improper Access Control).

Affected Systems

The vulnerable component is the RAGFlow 0.24.0 evaluation API. No vendor or product name is specified beyond the generic RAGFlow identifier, and the only version provided is the 0.24.0 release. The weakness exists in the get_dataset endpoint of the evaluation app, meaning systems that expose this service are affected.

Risk and Exploitability

The CVSS score of 9.8 indicates a critical vulnerability, while the EPSS score of less than 1% suggests limited current exploitation activity. The flaw is not listed in the CISA KEV catalog. The likely attack vector is an unauthenticated HTTP request to the get_dataset endpoint, provided the attacker has network access to the RAGFlow instance. Exploitation would allow execution of arbitrary code on the host running the service, compromising all security properties.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Check for and install official patches from the RAGFlow developers as soon as they become available
  • Restrict access to the /api/apps/evaluation_app endpoint so that only trusted users or internal services can invoke get_dataset
  • Sanitize all inputs to the get_dataset function and eliminate any ability to inject commands or arbitrary code
  • Apply network segmentation and firewall rules to limit external exposure of the RAGFlow service
  • Continuously monitor API logs for anomalous requests that may indicate exploitation attempts

Generated by OpenCVE AI on October 5, 2026 at 23:30 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Title Improper Access Control in RAGFlow Evaluation API Allows Arbitrary Code Execution
Type Values Removed Values Added
Title Unrestricted Code Execution via Improper Access Control in RAGFlow Evaluation API
Weaknesses CWE-732
CWE-94
Type Values Removed Values Added
Weaknesses CWE-284
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Title Unrestricted Code Execution via Improper Access Control in RAGFlow Evaluation API
Weaknesses CWE-732
CWE-94
Type Values Removed Values Added
Description RAGFlow 0.24.0 contains improper access control in get_dataset (api/apps/evaluation_app). Depending on the exposed entry, an attacker can trigger attacker-controlled code or command execution
References

Subscriptions

No data.

Weaknesses

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Oct 5, 2026, 6:57 PM
Reserved
Jun 8, 2026, 12:00 AM
Status
Deferred
Published
Oct 1, 2026, 10:17 PM
Modified
Oct 5, 2026, 7:17 PM