# CVE-2026-51897: RAGFlow improper access control in get_dataset API endpoint

Source: https://junglewise.ai/threats/cve-2026-51897-ragflow-0-24-0-contains-improper-access-control-in-get-dataset  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-10-01. Updated: 2026-10-05  
License: CC BY 4.0 with a link back

CVE-2026-51897 · Severity: info · Published 2026-10-01

RAGFlow is a document management and retrieval system. A vulnerability in the evaluation app's dataset endpoint allows an attacker to access another user's evaluation datasets without authorization by manipulating the dataset identifier parameter, potentially exposing sensitive data or enabling unauthorized actions.

Technologies: [InfiniFlow RAGFlow](https://junglewise.ai/threats/technologies/ragflow). Vendors: [InfiniFlow](https://junglewise.ai/threats/vendors/infiniflow).

## Quick answers

**Is CVE-2026-51897 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-51897 being exploited in the wild.

**How severe is CVE-2026-51897?** Informational severity, published 1 October 2026.

**Which products and versions are affected?** InfiniFlow RAGFlow 0.24.0 and earlier.

**Is there a fix for CVE-2026-51897?** No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.

**How is CVE-2026-51897 attacked?** It is attacked over the network.

**Am I affected by CVE-2026-51897?** Check whether you run InfiniFlow RAGFlow at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Technical details

The get_dataset endpoint in api/apps/evaluation_app.py (line 113) fails to verify that the requesting user owns the dataset before returning it. An authenticated attacker can directly request any dataset by ID, bypassing access controls. The vulnerability requires an attacker account and knowledge or enumeration of dataset identifiers, and may enable code execution depending on how the dataset is processed.

## Affected products

- InfiniFlow RAGFlow 0.24.0 and earlier

## Timeline

- 2026-10-01: disclosed
- other: Vulnerability discovered by Ro1ME

## References

- [https://gist.github.com/Ro1ME/7101a09720c120fd4989705aa7c0b894](https://gist.github.com/Ro1ME/7101a09720c120fd4989705aa7c0b894)

## Related threats

- [RAGFlow server-side request forgery in LLM API key endpoint](https://junglewise.ai/threats/cve-2026-49951-ragflow-before-0-27-0-contains-a-server-side-request-forgery)
- [InfiniFlow RAGFlow server-side request forgery in Seafile Connector](https://junglewise.ai/threats/cve-2026-121927-a-vulnerability-has-been-found-in-infiniflow-ragflow-up-to-0-27)
- [InfiniFlow RAGFlow authorization bypass in Text To SQL Retrieval](https://junglewise.ai/threats/cve-2026-121585-a-security-flaw-has-been-discovered-in-infiniflow-ragflow-up-to)
- [RAGFlow authorization bypass in OpenAI-compatible agent completion](https://junglewise.ai/threats/cve-2026-119337-ragflow-is-an-open-source-rag-retrieval-augmented-generation)
- [infiniflow RAGFlow improper access control in resume API](https://junglewise.ai/threats/cve-2026-51896-infiniflow-ragflow-0-25-3-contains-improper-access-control-in)
