Description
RAGFlow through 0.27.2 contains a path traversal vulnerability in the dev_insert_chunks_from_file and dev_insert_metadata_from_file endpoints that allows authenticated attackers to read arbitrary files by supplying absolute file paths in the file_path parameter. Attackers with valid access tokens can exploit missing path validation to read any file accessible to the service, with disclosure limited to files matching expected JSON structures that are then written to datasets.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| infiniflow | ragflow | ≤ 0.27.2 | — |
References
- https://github.com/infiniflow/ragflow/issues/19122 issue-tracking
- Pull Request #19591 patch issue-tracking
- Patch Commit patch
- https://github.com/infiniflow/ragflow/blob/v0.27.2/internal/handler/tenant.go#L360 technical-description
- https://github.com/infiniflow/ragflow product
- VulnCheck Advisory: RAGFlow through 0.27.2 Tenant Import Endpoints Path Traversal third-party-advisory