{
  "id": "CVE-2026-40518",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-40518",
  "published_at": "2026-04-17T16:43:42.387Z",
  "title": "ByteDance DeerFlow Path Traversal and Arbitrary File Write via Bootstrap Mode",
  "vendor": "bytedance",
  "product": "deer-flow",
  "cvss": {
    "score": 9.1,
    "source": "nvd",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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.",
  "cwe": "CWE-22",
  "cpes": [
    "cpe:2.3:a:bytedance:deerflow:2.0-m0:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 7.1,
    "nvd": 9.1
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "bytedance",
        "product": "deer-flow",
        "ranges": [
          "\u003c 2176b2bbfccfce25ceee08318813f96d843a13fd"
        ],
        "fixed_in": [
          "2176b2bbfccfce25ceee08318813f96d843a13fd"
        ]
      }
    ],
    "upgrade": [
      "Upgrade deer-flow to 2176b2bbfccfce25ceee08318813f96d843a13fd or later."
    ],
    "references": [
      {
        "kind": "Patch",
        "url": "https://github.com/bytedance/deer-flow/pull/2274"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/bytedance/deer-flow/commit/2176b2bbfccfce25ceee08318813f96d843a13fd"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
