Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to DeerFlow gateway (PR:L)
-
DeliveryAppConfig read fails while authorization is enabled
-
ExploitSandbox gate fails open and no-ops
-
ExecutionInvoke sandbox:execute without authorization
-
ImpactPerform limited unauthorized sandbox operations
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Authorization verification
MITRE ATT&CK
1 technique across 1 tactic: Defense Evasion The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires three things grounded in the diff: (1) authorization must actually be enabled (authorization.enabled: true) in DeerFlow's config.yaml, since the gate is designed to be a no-op when authorization was never configured; (2) authenticated low-privilege access to the gateway (PR:L) to reach the sandbox:execute / thread-run / artifact-archive paths that consume safe_app_config(); and (3) a config-read failure (get_app_config raising) AFTER an authorization-enabled config existed, which in the vulnerable code caused safe_app_config() to return None and the sandbox gate to silently permit execution. Limiting factors: default/CI deployments without an authorization-enabled config are unaffected, authentication is required (not anonymous), and exploitation depends on the transient config-unavailability condition rather than a directly attacker-controlled input - the trigger of that failure is not described in the available sources. |
| Impact | This is a moderate-severity improper-authorization (CWE-285) flaw whose real-world risk is bounded, not emergency-grade. The input CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L, score 5.3) indicates a remote but authenticated (PR:L) issue with only low impact to confidentiality, integrity, and availability. The source diff clarifies the mechanism: the sandbox authorization gate previously 'failed open' - when the AppConfig could not be read, safe_app_config() returned None and authorize_sandbox_execution() treated that identically to authorization.enabled: false, silently turning the sandbox:execute gate into a no-op. The patch makes the gate fail closed once an authorization-enabled config has ever been loaded. Exploitation is therefore contingent on authorization having been enabled AND a config-read failure occurring, so AC in practice is higher than the input's AC:L suggests. Signals are consistent and point to measured urgency: the vuln.today Decision label is 'this_month' (not act_now/emergency), there is NO CISA KEV listing, and no EPSS score was provided. The E:P (Proof-of-Concept) exploit-maturity metric aligns with the PoC-reference-only status - not confirmed weaponized exploit code. Net: a real, patch-worthy authorization weakness in a niche product, but not a high-urgency, widely-exploited threat on current signals. |
| Exploit ScenarioDerived | An authenticated user of a DeerFlow gateway where sandbox authorization has been enabled waits for or benefits from a transient AppConfig read failure, during which safe_app_config() returns None and the sandbox:execute gate silently no-ops. In that window the user invokes sandbox-backed operations (e.g. run/artifact paths) that should have been authorization-checked, obtaining limited unauthorized execution. A public PoC reference exists (GitHub PR #8185); it is not verified as working exploit code, and the AC:L/complexity reflects the vendor score rather than a demonstrated always-on trigger. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Dec 05, 2026
Improper authorization in ByteDance DeerFlow 2.1.0 and 2.2.0 lets an authenticated low-privilege user reach the sandbox authorization gate in a state where the policy is unknown and the gate silently permits execution instead of denying it. The flaw lives in safe_app_config() in backend/packages/harness/deerflow/authz/sandbox_authz.py, which returns None when the application config cannot be read and is then treated the same as 'authorization disabled', so sandbox:execute and the thread-run/artifact-archive paths it guards proceed without an authorization check. Triggering it requires authorization to have been enabled in config.yaml, a low-privilege authenticated session, and a config-read failure occurring after an authorization-enabled config existed; the cause of that failure is not described in the available sources. A public PoC reference exists (the upstream fix pull request is tagged as an exploit reference) but it is not verified as working exploit code, and there is no CISA KEV confirmation of active exploitation; vendor.priority is this_month and the risk is bounded rather than emergency-grade.
RemediationAI
Upstream fix available (PR/commit); released patched version not independently confirmed - apply commit ae871431a2e38febba5567c37a27b644febbd7d4 from pull request https://github.com/bytedance/deer-flow/pull/8185, which makes safe_app_config() fail closed by raising SandboxAuthorizationError once an authorization-enabled config has been observed and updates the artifact-archive endpoint to return HTTP 503 instead of proceeding unchecked. No tagged DeerFlow release containing this commit is confirmed in the available data, so pin or vendor the patched commit and verify the version you deploy. Until then, compensating steps that match the flaw's prerequisites: keep authorization.enabled: true set in config.yaml and confirm via get_app_config()/peek_loaded_app_config() that the configuration loads reliably, since the vulnerable behavior only manifests on a config-read failure after authorization was enabled (trade-off: this is a hardening measure, not a substitute for the fix, because the read failure can still downgrade the gate); and restrict access to the gateway sandbox:execute, thread-run and artifact-archive endpoints to trusted operators so the required authenticated low-privilege access (PR:L) is not broadly granted (trade-off: reduces functionality for legitimate users of artifact archives). Per the vendor guidance, patching is the complete resolution, and the vendor advisory should be tracked for an official release announcement.
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
DeerFlow is a Python-based agent harness with a gateway layer (backend/app/gateway, including routers/thread_runs.py) and a harness package (backend/packages/harness/deerflow) that enforces authorization for sandbox execution. The security control is a sandbox authorization gate in deerflow/authz/sandbox_authz.py: safe_app_config() loads the global AppConfig - normally produced from config.yaml via get_app_config() - and authorize_sandbox_execution() treats a None app_config identically to authorization.enabled: false, i.e. a no-op. The original code wrapped the load in a blanket try/except that returned None on any exception, so a transient config-read failure after an authorization-enabled configuration had already been in effect downgraded the gate from 'enforce' to 'permit'. This is CWE-285 (Improper Authorization): the policy decision fails open when the policy source is unreadable. The upstream fix commit ae871431a2e38febba5567c37a27b644febbd7d4 introduces a process-global _authorization_config_loaded flag and a peek_loaded_app_config() check, so that once authorization has ever been observed as enabled, a subsequent read failure raises SandboxAuthorizationError instead of returning None; the change is deliberately unconditional because authorization.fail_closed itself lives in the unreadable config. Callers were adapted accordingly - create_run_artifact_archive() in backend/app/gateway/routers/thread_runs.py now catches SandboxAuthorizationError and returns HTTP 503 'Artifact archive is temporarily unavailable' - and test fixtures reset the global flag between runs. Prerequisites from the patch: authorization.enabled: true must be set, the caller must hold an authenticated low-privilege session (CVSS 4.0 PR:L), and the config read must fail; deployments that never configured authorization are unaffected, and the authentication requirement rules out anonymous exploitation.
Know when Deerflow 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
Remote but authenticated (PR:L) gateway access; AC:H because exploitation depends on a transient config-read failure while authorization is enabled, with only low C/I/A impact from a bypassed sandbox gate.
Primary rating from Vendor (VulDB).
CVSS VectorVendor: VulDB
Lifecycle Timeline
3DescriptionCVE.org
A security vulnerability has been detected in Bytedance DeerFlow 2.1.0/2.2.0. This affects the function safe_app_config of the file backend/packages/harness/deerflow/authz/sandbox_authz.py of the component Sandbox Authorization Gate. Such manipulation leads to improper authorization. The attack can be executed remotely. The exploit has been disclosed publicly and may be used. The name of the patch is ae871431a2e38febba5567c37a27b644febbd7d4. It is best practice to apply a patch to resolve this issue.
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.
Sandbox escape in ByteDance Deer-Flow (pre-commit 92c7a20) enables remote attackers to execute arbitrary commands on the
ByteDance Deer-Flow artifacts API fails to sanitize user-supplied HTML and script content before storage and rendering,
EUVD-2026-145160
GHSA-3mhc-pgp4-j5gc
NVD
CVE.org
VulDB
Exploit-DB