CVE-2026-93013: RAGFlow: path traversal enables arbitrary JSON file read
MEDIUMRAGFlow through 0.27.2 has a path traversal flaw in two tenant import endpoints (dev_insert_chunks_from_file and dev_insert_metadata_from_file). An authenticated user can pass an absolute file_path and make the service read files outside the intended directory. Real-world risk is limited: the CVSS score is 4.3 (medium), CISA SSVC says TRACK, the CVE is not in KEV, no public exploit or Nuclei template exists, and the EPSS percentile is around 58%. Only files that match the expected JSON structure are disclosed, and only by being written into datasets, so the leak is narrow. It still deserves routine patching, because a stolen low-privilege token turns it into a way to pull JSON configs or credential files out of the RAG host. Upgrade to a release containing the fix (commit aa78e8d, PR #19591), and review which users hold API tokens in the meantime.
What is the risk?
Low to medium. The attack is network-reachable, needs low complexity and only low privileges, but it requires a valid access token. Confidentiality impact is low because content is limited to files that parse as the expected JSON schema. There is no integrity or availability impact. There is no known exploitation, no public PoC, and the EPSS score is low (0.00511). Risk rises in multi-tenant RAGFlow deployments where untrusted users can hold tokens, or where the service runs with broad filesystem access and many JSON files (cloud credentials, app configs) sit on the host.
How does the attack unfold?
How severe is it?
What is the attack surface?
What should I do?
1 step1) Upgrade RAGFlow to a version that includes commit aa78e8d / PR #19591. 2) Until patched, block or restrict access to the tenant import endpoints (dev_insert_chunks_from_file, dev_insert_metadata_from_file) at the reverse proxy or WAF. 3) Rotate and minimize API tokens and remove unused accounts. 4) Run RAGFlow as a non-root user in a container with a read-only root filesystem and no sensitive mounts; keep secrets out of JSON files on the host. 5) Detect abuse by alerting on requests to these endpoints that contain absolute paths (e.g. leading '/' or '..') in the file_path parameter, and audit datasets for unexpected chunks that look like config or credential data.
What does CISA's SSVC say?
Source: CISA Vulnrichment (SSVC v2.0). Decision based on the CISA Coordinator decision tree.
How is it classified?
Which compliance frameworks are affected?
This CVE is relevant to:
Frequently Asked Questions
What is CVE-2026-93013?
RAGFlow through 0.27.2 has a path traversal flaw in two tenant import endpoints (dev_insert_chunks_from_file and dev_insert_metadata_from_file). An authenticated user can pass an absolute file_path and make the service read files outside the intended directory. Real-world risk is limited: the CVSS score is 4.3 (medium), CISA SSVC says TRACK, the CVE is not in KEV, no public exploit or Nuclei template exists, and the EPSS percentile is around 58%. Only files that match the expected JSON structure are disclosed, and only by being written into datasets, so the leak is narrow. It still deserves routine patching, because a stolen low-privilege token turns it into a way to pull JSON configs or credential files out of the RAG host. Upgrade to a release containing the fix (commit aa78e8d, PR #19591), and review which users hold API tokens in the meantime.
Is CVE-2026-93013 actively exploited?
No confirmed active exploitation of CVE-2026-93013 has been reported, but organizations should still patch proactively.
How to fix CVE-2026-93013?
1) Upgrade RAGFlow to a version that includes commit aa78e8d / PR #19591. 2) Until patched, block or restrict access to the tenant import endpoints (dev_insert_chunks_from_file, dev_insert_metadata_from_file) at the reverse proxy or WAF. 3) Rotate and minimize API tokens and remove unused accounts. 4) Run RAGFlow as a non-root user in a container with a read-only root filesystem and no sensitive mounts; keep secrets out of JSON files on the host. 5) Detect abuse by alerting on requests to these endpoints that contain absolute paths (e.g. leading '/' or '..') in the file_path parameter, and audit datasets for unexpected chunks that look like config or credential data.
What systems are affected by CVE-2026-93013?
This vulnerability affects the following AI/ML architecture patterns: RAG pipelines, Knowledge base ingestion services, Multi-tenant AI platforms.
What is the CVSS score for CVE-2026-93013?
CVE-2026-93013 has a CVSS v3.1 base score of 4.3 (MEDIUM). The EPSS exploitation probability is 0.51%.
What is the AI security impact?
Affected AI Architectures
MITRE ATLAS Techniques
AML.T0012Valid AccountsAML.T0036Data from Information RepositoriesAML.T0037Data from Local SystemAML.T0049Exploit Public-Facing ApplicationCompliance Controls Affected
What are the technical details?
Original Advisory
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.
Exploitation Scenario
An attacker obtains a low-privilege RAGFlow token through a phished user, a leaked API key, or a self-registered account. They call the dev_insert_chunks_from_file endpoint with file_path set to an absolute path of a JSON file on the host, such as a cloud credentials file or an application config. The service reads the file and writes its contents into a dataset the attacker controls. The attacker then queries or exports that dataset to retrieve the secrets, and uses them to move laterally into cloud or LLM provider accounts.
Weaknesses (CWE)
CWE-22Improper Limitation of a Pathname to a Restricted DirectoryPrimaryCWE-22Improper Limitation of a Pathname to a Restricted DirectoryCWE-22 — Improper Limitation of a Pathname to a Restricted Directory: The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.
- [Implementation] Assume all input is malicious. Use an "accept known good" input validation strategy, i.e., use a list of acceptable inputs that strictly conform to specifications. Reject any input that does not strictly conform to specifications, or transform it into something that does. When performing input validation, consider all potentially relevant properties, including length, type of input, the full range of acceptable values, missing or extra inputs, syntax, consistency across related fields, and conformance to business rules. As an example of business rule logic, "boat" may be syntactically valid because it only contains alphanumeric characters, but it is not valid if the input is only expected to contain colors such as "red" or "blue." Do not rely exclusively on looking for malicious or malformed inputs. This is likely to miss at least one undesirable input, especially if the code's environment changes. This can give attackers enough room to bypass the intended validation. However, denylis
- [Architecture and Design] For any security checks that are performed on the client side, ensure that these checks are duplicated on the server side, in order to avoid CWE-602. Attackers can bypass the client-side checks by modifying values after the checks have been performed, or by changing the client to remove the client-side checks entirely. Then, these modified values would be submitted to the server.
Source: MITRE CWE corpus.
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:NReferences
- github.com/infiniflow/ragflow
- github.com/infiniflow/ragflow/blob/v0.27.2/internal/handler/tenant.go
- github.com/infiniflow/ragflow/commit/aa78e8d224e0eab818d9fcd46f8791ebd73831bd
- github.com/infiniflow/ragflow/issues/19122
- github.com/infiniflow/ragflow/pull/19591
- vulncheck.com/advisories/ragflow-through-0.27.2-tenant-import-endpoints-path-traversal
Timeline
Related Vulnerabilities
CVE-2025-512010.0smolagents: sandbox escape enables unauthenticated RCE
Same attack type: Data LeakageCVE-2025-5376710.0Azure OpenAI: SSRF EoP, no auth required (CVSS 10)
Same attack type: Data ExtractionCVE-2023-376510.0MLflow: path traversal allows arbitrary file read
Same attack type: Data LeakageCVE-2025-282810.0LangChain RequestsToolkit: SSRF exposes cloud metadata
Same attack type: Data ExtractionCVE-2026-2185810.0n8n: Input Validation flaw enables exploitation
Same attack type: Data Extraction