# CVE-2026-51892: infiniflow RAGFlow incorrect access control in document retrieval

Source: https://junglewise.ai/threats/cve-2026-51892-infiniflow-ragflow-0-24-0-is-vulnerable-to-incorrect-access  
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-51892 · Severity: info · Published 2026-10-01

RAGFlow is a document management and retrieval system. The application fails to properly verify that users have permission to access documents before serving them, allowing attackers to download documents belonging to other users or organizations by guessing or knowing document identifiers.

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

## Quick answers

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

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

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

**Is there a fix for CVE-2026-51892?** 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-51892 attacked?** It is attacked over the network, in a web application.

**Am I affected by CVE-2026-51892?** 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

An access control flaw in the /v1/document/get/<doc_id> endpoint (document_app.py:726) allows unauthenticated or cross-tenant users to retrieve arbitrary documents without proper authorization checks. The endpoint accepts a caller-selected resource identifier but fails to bind the resource access back to the caller's identity or tenant context. Exploitation requires only network access and knowledge of a target document ID.

## Affected products

- infiniflow RAGFlow 0.24.0

## Timeline

- 2026-10-01: disclosed

## References

- [https://gist.github.com/Ro1ME/00684720b33e37b2dd39856d6c226468](https://gist.github.com/Ro1ME/00684720b33e37b2dd39856d6c226468)
- [https://github.com/infiniflow/ragflow/issues/14618](https://github.com/infiniflow/ragflow/issues/14618)

## 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)
- [RAGFlow improper access control in get_dataset API endpoint](https://junglewise.ai/threats/cve-2026-51897-ragflow-0-24-0-contains-improper-access-control-in-get-dataset)
