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
ByteDance DeerFlow versions prior to commit 2176b2b contain a CWE-22 path traversal vulnerability in the bootstrap-mode custom-agent creation process. The agent name validation can be bypassed, allowing attackers to supply traversal-style or absolute path values. This influences directory creation and enables writing files outside the designated custom-agent directory, potentially resulting in arbitrary file write capabilities constrained by filesystem permissions. The vulnerability has a CVSS 4.0 base score of 7.1, reflecting a high severity level with network attack vector, low attack complexity, no privileges required, and no user interaction needed.
Potential Impact
Successful exploitation allows an attacker with limited privileges to write arbitrary files outside the intended directory, potentially leading to unauthorized modification of system files or application data. The impact depends on the filesystem permissions of the affected system. There are no reports of active exploitation in the wild at this time.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, restrict access to the affected system and monitor for suspicious activity related to custom-agent creation. Avoid running the vulnerable version in untrusted environments. Follow up with ByteDance for updates or patches addressing this vulnerability.
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.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
ByteDance DeerFlow versions prior to commit 2176b2b contain a CWE-22 path traversal vulnerability in the bootstrap-mode custom-agent creation process. The agent name validation can be bypassed, allowing attackers to supply traversal-style or absolute path values. This influences directory creation and enables writing files outside the designated custom-agent directory, potentially resulting in arbitrary file write capabilities constrained by filesystem permissions. The vulnerability has a CVSS 4.0 base score of 7.1, reflecting a high severity level with network attack vector, low attack complexity, no privileges required, and no user interaction needed.
Potential Impact
Successful exploitation allows an attacker with limited privileges to write arbitrary files outside the intended directory, potentially leading to unauthorized modification of system files or application data. The impact depends on the filesystem permissions of the affected system. There are no reports of active exploitation in the wild at this time.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, restrict access to the affected system and monitor for suspicious activity related to custom-agent creation. Avoid running the vulnerable version in untrusted environments. Follow up with ByteDance for updates or patches addressing this vulnerability.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-04-13T20:29:02.809Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69e26909bdfbbecc5968fd22
Added to database: 4/17/2026, 5:08:25 PM
Last enriched: 4/17/2026, 5:23:07 PM
Last updated: 4/17/2026, 7:38:25 PM
Views: 14
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.