CVE-2026-40518: CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in bytedance deer-flow
ByteDance DeerFlow before commit 2176b2b contains a path traversal and arbitrary file write vulnerability in bootstrap-mode custom-agent creation where the agent name validation is bypassed. Attackers can supply traversal-style values or absolute paths as the agent name to influence directory creation and write files outside the intended custom-agent directory, potentially achieving arbitrary file write on the system subject to filesystem permissions.
AI Analysis
Technical Summary
CVE-2026-40518 is a path traversal and arbitrary file write vulnerability in ByteDance DeerFlow versions before commit 2176b2b. The issue arises because the agent name validation can be bypassed, allowing attackers to supply traversal-style or absolute paths as the agent name. This manipulation influences directory creation and permits writing files outside the designated custom-agent directory, potentially resulting in arbitrary file write on the affected system, subject to filesystem permissions.
Potential Impact
Successful exploitation allows an attacker with limited privileges to write files arbitrarily outside the intended directory structure, which can lead to unauthorized file modification or creation. The impact depends on the filesystem permissions but can potentially escalate to broader system compromise or persistent code execution.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. No official fix or patch is currently documented. Until a patch is available, restrict access to the affected functionality and monitor for suspicious activity related to custom-agent creation.
CVE-2026-40518: CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in bytedance deer-flow
Description
ByteDance DeerFlow before commit 2176b2b contains a path traversal and arbitrary file write vulnerability in bootstrap-mode custom-agent creation where the agent name validation is bypassed. Attackers can supply traversal-style values or absolute paths as the agent name to influence directory creation and write files outside the intended custom-agent directory, potentially achieving arbitrary file write on the system subject to filesystem permissions.
CVSS v4.0
Score 7.1high
Affected software
bytedance
deer-flow
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-40518 is a path traversal and arbitrary file write vulnerability in ByteDance DeerFlow versions before commit 2176b2b. The issue arises because the agent name validation can be bypassed, allowing attackers to supply traversal-style or absolute paths as the agent name. This manipulation influences directory creation and permits writing files outside the designated custom-agent directory, potentially resulting in arbitrary file write on the affected system, subject to filesystem permissions.
Potential Impact
Successful exploitation allows an attacker with limited privileges to write files arbitrarily outside the intended directory structure, which can lead to unauthorized file modification or creation. The impact depends on the filesystem permissions but can potentially escalate to broader system compromise or persistent code execution.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. No official fix or patch is currently documented. Until a patch is available, restrict access to the affected functionality and monitor for suspicious activity related to custom-agent creation.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-04-13T20:29:02.809Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 69e26909bdfbbecc5968fd22
Added to database: 04/17/2026, 17:08:25 UTC
Last enriched: 08/15/2026, 13:44:51 UTC
Last updated: 09/14/2026, 10:01:30 UTC
Views: 203
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.