Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSelf-register account on Dify instance
-
DeliveryObtain target file UUID via leakage or chaining
-
ExploitSend GET to /console/api/files/{uuid}/preview
-
ExecutionBypass missing tenant check in FileService
-
PersistReceive up to 3000 chars of cross-tenant document
-
ImpactExfiltrate sensitive RAG content
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Object-level authorization, IDOR prevention
|
| Exploitation Conditions | Exploitation requires the attacker to (1) hold a valid Dify account in any tenant on the target instance - trivially obtainable on Dify Cloud due to free open self-registration, and easy on any self-hosted Dify deployment that has not disabled signups - and (2) possess or guess the UUID of a target file uploaded by another tenant. UUIDs are 128-bit and not enumerable by brute force, so practical exploitation depends on UUID leakage through referrer headers, shared logs, screenshots, error messages, or chained vulnerabilities, which is the basis of the CVSS AC:H rating. Limiting factors: the endpoint truncates output at 3,000 characters per file, only previewable file types are returned, and the target deployment must be running Dify 1.14.1 or earlier with the /console/api/files/{file_id}/preview endpoint reachable from the attacker's network position. |
| Impact | CVSS 4.0 vector AV:N/AC:H/PR:N/UI:N/VC:H scores 8.2 (High) - network-reachable, no authentication required for the vector itself, high confidentiality impact, but high attack complexity. The AC:H rating is the key tension: it reflects the need to obtain valid file UUIDs, but the description and source code make clear no other obstacles exist once a UUID is known, and Dify Cloud's free self-registration effectively neutralizes the PR:N-vs-authenticated distinction. Publicly available exploit code (Huntr bounty disclosure) and VulnCheck reporting raise this above the average CWE-639 finding. No EPSS score or CISA KEV entry was provided in the input, so widespread mass-exploitation likelihood cannot be quantified, but the combination of trivial account creation on the SaaS offering, available PoC, and high-value targets (RAG document corpora often contain proprietary or PII data) makes this a real priority for any Dify deployment, especially self-hosted multi-tenant instances. |
| Exploit ScenarioDerived | An attacker self-registers a free account on a Dify Cloud or multi-tenant Dify instance, obtains a victim file UUID through observation, log leakage, brute force, or social engineering, and issues an authenticated GET to /console/api/files/{file_id}/preview. The server returns up to 3,000 characters of the targeted document regardless of tenant ownership, leaking proprietary RAG content, API keys, or PII. A public PoC accompanies the Huntr bounty disclosure, lowering the skill barrier substantially. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – May 18, 2026
Cross-tenant document disclosure in Dify 1.14.1 and prior allows any authenticated user to read up to 3,000 characters of arbitrary uploaded files across all tenants and workspaces by submitting the file's UUID to the /console/api/files/{file_id}/preview endpoint. The flaw is amplified on Dify Cloud, where free self-registration makes account creation trivial, and publicly available exploit code exists via the Huntr disclosure. No CISA KEV listing has been recorded at time of analysis, but the combination of low-friction account access and a documented PoC raises practical exposure considerably.
Earlier versions of this analysis (1)
Authenticated file disclosure in Dify 1.14.1 and prior allows any registered user to read up to 3,000 characters from documents across all tenants and workspaces by directly accessing the /console/api/files/{file_id}/preview endpoint with only a file UUID. The vulnerability bypasses tenant and workspace isolation, enabling cross-tenant data exfiltration. Attack complexity is rated high (AC:H) but requires no privileges (PR:N), and Dify Cloud's free self-registration makes account creation trivial. Publicly available exploit code exists per Huntr bounty d50a0240-7951-4939-b989-9bded66c7682, and upstream patch is available via GitHub PR #35797.
RemediationAI
Upstream fix available via GitHub PR https://github.com/langgenius/dify/pull/35797, which adds tenant scoping to FileService.get_file_preview; upgrade to the first released Dify version that includes this PR (a released patched version greater than 1.14.1 is not independently confirmed from the provided data, so verify the release tag against the PR merge commit before deploying). As an interim compensating control on self-hosted deployments, restrict network access to the /console/api/files/{file_id}/preview endpoint at the reverse proxy or WAF layer to trusted operator IPs, accepting that this will break legitimate in-product file previews for end users. Operators of Dify Cloud-style multi-tenant instances should additionally disable open self-registration if business policy permits, since unauthenticated signup is what converts this from an authenticated-user issue into a near-anonymous one. Review application logs for prior GETs to /console/api/files/*/preview and correlate file_id values against the uploading tenant to detect possible historical abuse.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Dify is an open-source LLM application development platform (CPE cpe:2.3:a:langgenius:dify) that supports multi-tenant workspaces where users upload documents to power retrieval-augmented generation pipelines. The vulnerability is a classic CWE-639 (Authorization Bypass Through User-Controlled Key): the FilePreviewApi controller in api/controllers/console/files.py called FileService.get_file_preview(file_id) using only the file UUID, and the underlying SQLAlchemy query (select(UploadFile).where(UploadFile.id file_id)) never constrained results to the requesting account's tenant. The upstream patch in PR #35797 introduces current_account_with_tenant() in the controller and adds UploadFile.tenant_id tenant_id to the WHERE clause, enforcing the missing tenant scoping check.
Know when Dify gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
Primary rating from Vendor (VulnCheck) · only source for this CVE.
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
3DescriptionCVE.org
Dify version 1.14.1 and prior contain an authorization bypass vulnerability in the file preview endpoint that allows any authenticated user to read up to 3,000 characters of any uploaded document across all tenants and workspaces using only the file's UUID. Attackers can access the /console/api/files/{file_id}/preview endpoint with an intercepted file UUID to extract sensitive content from documents without ownership or workspace permission verification. NOTE: Dify Cloud allows unauthenticated free self-registration, making account creation trivially accessible to any attacker.
Executive ViewAI
Dify versions 1.14.1 and prior contain a cross-tenant file disclosure vulnerability allowing any authenticated user to read uploaded documents across all tenants and workspaces. Publicly available exploit code exists, and the risk is amplified on Dify Cloud where account creation is unrestricted, enabling attackers to trivially access customer files at scale.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
Dify 1.9.1 permits unauthenticated remote GET requests to the /console/api/system-features console endpoint, letting ano
Hard-coded default PostgreSQL credentials shipped in the docker-compose.yaml of langgenius Dify through version 1.5.1 al
Path traversal in Dify versions 0 through 1.14.1 allows authenticated tenants to escape their authorized tenant path and
Cross-tenant authorization bypass in LangGenius Dify versions through 1.14.1 lets any logged-in editor reroute another t
A vulnerability in langgenius/dify v0.10.1 allows an attacker to take over any account, including administrator accounts
SQL injection in Dify's MyScale vector store backend (versions before 1.16.0-rc1) lets authenticated attackers execute a
Plaintext exposure of third-party service API keys in Dify prior to version 1.11.0 allows any authenticated non-administ
langgenius/dify version v0.10.1 contains a vulnerability where there are no limits applied to the number of code guess a
In langgenius/dify v0.10.1, the `/forgot-password/resets` endpoint does not verify the password reset code, allowing an
Dify is an open-source LLM app development platform. Rated high severity (CVSS 7.6), this vulnerability is remotely expl
A stored cross-site scripting (XSS) vulnerability exists in langgenius/dify version latest, specifically in the chat log
langgenius/dify version 0.9.1 contains a Server-Side Request Forgery (SSRF) vulnerability. Rated high severity (CVSS 7.5
EUVD-2026-30774
GHSA-jv3f-qwf9-wvq9
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB