Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach reachable Dify sandbox endpoint
-
ExploitSupply public default dify-sandbox API key
-
ExecutionAuthenticate to code-execution service
-
ImpactRun code within sandbox container
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V6 - Authentication Credential externalization
MITRE ATT&CK
2 techniques across 2 tactics: Persistence, Credential Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the deployment to still use the shipped default sandbox credential - CODE_EXECUTION_API_KEY / SANDBOX_API_KEY left at 'dify-sandbox' (the pre-patch default in api/.env.example, docker/.env.example and api/configs/feature/__init__.py) - AND the Dify sandbox code-execution service being network-reachable by the attacker. Limiting factors: in standard Docker Compose the sandbox is intended to be bound to the internal network / localhost (the fix explicitly publishes it on 127.0.0.1:8194 for the local API), so it is not exposed externally in default topologies; affected versions are Dify up to 1.18.0 and 2.0.0-beta.2; an operator who set a unique key is not exploitable. The input vector's PR:L implies some authentication, but the credential itself is a publicly documented default. |
| Impact | All decision signals point to low real-world priority. The supplied CVSS 4.0 base score is 2.1 (Low) with vulnerable-system impacts rated Low across confidentiality, integrity and availability (VC:L/VI:L/VA:L) and no subsequent-system impact, and the vuln.today Decision label is 'monitor' - not act_now or emergency. This is not in CISA KEV, so there is no confirmed active exploitation, and no EPSS probability was provided in the input, so exploitation likelihood cannot be quantified from this data. The exploit maturity is E:P (proof-of-concept): a public advisory reference exists but the input marks it as not verified as working exploit code, so POC availability must not be read as active exploitation. One signal to verify: the input vector uses PR:L (authenticated) despite this being a hard-coded/default-credential flaw where the default key 'dify-sandbox' is publicly documented - an attacker typically needs no legitimate account, which argues for PR:N; this discrepancy should be checked against the vendor advisory. Overall this is a genuine hygiene/default-credential weakness confirmed by the source diff, but the combination of Low impact, 'monitor' decision, no KEV and an unverified PoC makes it a low-urgency, patch-on-normal-cycle issue rather than an emergency. |
| Exploit ScenarioDerived | An operator deploys Dify (≤ 1.18.0 / 2.0.0-beta.2) via Docker Compose and never changes CODE_EXECUTION_API_KEY / SANDBOX_API_KEY from the shipped default 'dify-sandbox'. An attacker who can reach the sandbox code-execution service supplies the publicly known default key to authenticate to it and run code in the sandbox container. A public PoC reference advisory exists but is not verified as working exploit code, so practical exploitation depends on the default key being retained and the sandbox endpoint being reachable. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 05, 2026
Dify self-hosted deployments up to 1.18.0 and 2.0.0-beta.2 shipped a hard-coded sandbox API key, 'dify-sandbox', set as the default in api/configs/feature/__init__.py and in the api/.env.example and docker/.env.example templates, so an attacker who can reach the code-execution sandbox service can authenticate to it with a publicly documented credential and drive the sandbox's code-execution functionality. Exposure is conditional: standard Docker Compose topologies keep the sandbox on the internal network (the fix explicitly publishes it only on 127.0.0.1:8194 for the local API), and any operator who already set a unique key is not affected. A public PoC reference exists; it is not verified as working exploit code, there is no KEV listing, and the current priority decision is monitor, with the supplied CVSS 4.0 score of 2.1 (E:P) reflecting limited confidentiality, integrity and availability impact.
RemediationAI
Upstream fix available (PR/commit); released patched version not independently confirmed - apply https://github.com/langgenius/dify/pull/44192 or a release containing it. The practical remediation for existing installs is to stop relying on the default: generate a unique secret (openssl rand -hex 32), set SANDBOX_API_KEY in docker/.env and the matching CODE_EXECUTION_API_KEY in api/.env, rotate away from any existing 'dify-sandbox' value, and restart both the API and sandbox services - per the updated docker/README.md, the same key must be supplied to both services. Keep the sandbox bound to the internal network or to 127.0.0.1 (as the fix's docker-compose.middleware.sandbox-port.yaml does with 127.0.0.1:8194); publishing the sandbox port externally re-exposes the service regardless of the key value. No other compensating controls are specified in the available sources.
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
CWE-798 (Use of Hard-coded Credentials) in Dify's code-execution configuration: the Pydantic BaseSettings class CodeExecutionSandboxConfig in api/configs/feature/__init__.py declared api_key with default="dify-sandbox", and the same literal was baked into api/.env.example (CODE_EXECUTION_API_KEY=dify-sandbox) and docker/.env.example (SANDBOX_API_KEY=dify-sandbox). That value is the shared secret the Dify API uses to authenticate to the dify-sandbox service, the component that actually runs user-supplied code, so anyone who knows the default can talk to the sandbox HTTP interface directly rather than through the API's authorization layer. The upstream fix (PR #44192) removes the default from the settings class, blanks both environment templates, generates a random key with 'openssl rand -hex 32' in dev/setup, the Makefile and CI workflows, wires the same value into api/.env and docker/middleware.env, and adds a compose overlay (docker-compose.middleware.sandbox-port.yaml) that publishes the sandbox on 127.0.0.1:8194. The supplied CVSS 4.0 vector carries PR:L while the independent assessment (CVSS 3.1, AV:N/AC:L/PR:N/UI:N) treats the shipped default as requiring no prior access; either way, the prerequisite is unchanged - the deployment still uses the 'dify-sandbox' key and the sandbox port is reachable by the attacker, and the trigger path beyond that is not described in the available sources.
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:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P
Default credential 'dify-sandbox' is publicly known so no attacker-held privilege is needed (PR:N); network-reachable sandbox with low complexity; impact confined to the sandbox container, hence Low C/I/A.
Primary rating from Vendor (VulDB).
CVSS VectorVendor: VulDB
Lifecycle Timeline
3DescriptionCVE.org
A vulnerability was found in langgenius dify up to 1.18.0/2.0.0-beta.2. Affected by this vulnerability is an unknown functionality of the file api/configs/feature/__init__.py of the component Sandbox Run Handler. The manipulation results in hard-coded credentials. The attack can be launched remotely. The exploit has been made public and could be used.
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
Cross-tenant document disclosure in Dify 1.14.1 and prior allows any authenticated user to read up to 3,000 characters o
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
EUVD-2026-117723
GHSA-4w83-mp5v-8r97
NVD
CVE.org
EPSS
VulDB
Exploit-DB