Skip to main content

Dify EUVDEUVD-2026-117723

| CVE-2026-123135 LOW
Use of Hard-coded Credentials (CWE-798)
2026-11-05 VulDB GHSA-4w83-mp5v-8r97
2.1
CVSS 4.0 · Vendor: VulDB
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Reach reachable Dify sandbox endpoint
  2. Exploit
    Supply public default dify-sandbox API key
  3. Execution
    Authenticate to code-execution service
  4. Impact
    Run 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.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

dify 1.13
dify 2.0.0-beta.2
dify 1.10
dify 1.6
dify 1.9
dify 1.16
dify 1.1
dify 2.0.0-beta.0
dify 1.3
dify 1.7
dify 1.4
dify 1.15
dify 1.12
dify 1.17
dify 1.14
dify 1.18.0
dify 1.5
dify 1.11
dify 1.0
dify 2.0.0-beta.1
dify 1.2
dify 1.8

Affected Packages

euvd dify no fix

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

Vendor (VulDB) PRIMARY 2.1 MEDIUM
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
vuln.today AI 7.3 HIGH

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.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (VulDB).

CVSS VectorVendor: VulDB

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

3
Severity Changed
Nov 05, 2026 - 19:22 NVD
MEDIUM LOW
CVSS changed
Nov 05, 2026 - 19:22 NVD
5.3 (MEDIUM) 2.1 (LOW)
CVE Published
Nov 05, 2026 - 18:45 cve.org
LOW 2.1

DescriptionCVE.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

EPSS Score
0.2%
Top 88% exploitable
Prevalence
Medium
popular self-hosted open-source LLM app platform, moderate deployment footprint
Exploit
POC
Public exploit code exists
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity LOW
CISA KEV No
Public POC Yes
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Low

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +10
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

More in Dify

View all
CVE-2025-63387 MEDIUM POC
4.3 Dec 18

Dify 1.9.1 permits unauthenticated remote GET requests to the /console/api/system-features console endpoint, letting ano

CVE-2025-56157 CRITICAL POC
9.8 Dec 18

Hard-coded default PostgreSQL credentials shipped in the docker-compose.yaml of langgenius Dify through version 1.5.1 al

CVE-2026-41948 CRITICAL POC
9.3 May 18

Path traversal in Dify versions 0 through 1.14.1 allows authenticated tenants to escape their authorized tenant path and

CVE-2026-41947 CRITICAL POC
9.3 May 18

Cross-tenant authorization bypass in LangGenius Dify versions through 1.14.1 lets any logged-in editor reroute another t

CVE-2025-1796 HIGH POC
8.8 Mar 20

A vulnerability in langgenius/dify v0.10.1 allows an attacker to take over any account, including administrator accounts

CVE-2026-61461 HIGH POC
8.7 Jul 10

SQL injection in Dify's MyScale vector store backend (versions before 1.16.0-rc1) lets authenticated attackers execute a

CVE-2025-67732 HIGH POC
8.4 Jan 05

Plaintext exposure of third-party service API keys in Dify prior to version 1.11.0 allows any authenticated non-administ

CVE-2026-41949 HIGH POC
8.2 May 18

Cross-tenant document disclosure in Dify 1.14.1 and prior allows any authenticated user to read up to 3,000 characters o

CVE-2024-12039 HIGH POC
8.1 Mar 20

langgenius/dify version v0.10.1 contains a vulnerability where there are no limits applied to the number of code guess a

CVE-2024-12776 HIGH POC
8.1 Mar 20

In langgenius/dify v0.10.1, the `/forgot-password/resets` endpoint does not verify the password reset code, allowing an

CVE-2025-43862 HIGH POC
7.6 Apr 25

Dify is an open-source LLM app development platform. Rated high severity (CVSS 7.6), this vulnerability is remotely expl

CVE-2024-11824 HIGH POC
7.6 Mar 20

A stored cross-site scripting (XSS) vulnerability exists in langgenius/dify version latest, specifically in the chat log

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy