CVE-2026-37007: crewai-tools: Path traversal in FileWriterTool enables RCE
CRITICALPoC AVAILABLECISA: TRACK*A path traversal flaw in the built-in FileWriterTool of crewai-tools (versions up to 1.10.2rc1) lets an attacker supply crafted '../' sequences in the filename argument to write files outside the tool's intended output directory, ultimately enabling remote code execution. CrewAI is a widely adopted multi-agent orchestration framework, and FileWriterTool is a stock tool many agent builders wire up to let agents persist output to disk — meaning any deployment that exposes this tool to user input or LLM-generated arguments (including via prompt injection) inherits the flaw. There is no CVSS score, EPSS data, CISA KEV listing, public exploit, or Nuclei template available yet, and the advisory was only published 2026-08-27, so this should be treated as an unconfirmed-severity but plausible RCE rather than an active-exploitation emergency. The maintainers have already shipped a fix (commit 713fa7d in crewAIInc/crewAI); teams running crewai-tools should upgrade past 1.10.2rc1 immediately and, in the meantime, restrict FileWriterTool's writable path scope and treat any LLM-controlled filename argument as untrusted input requiring strict sanitization.
What is the risk?
Severity is currently unrated (no CVSS vector published), which understates the practical risk: a path traversal bug in a filesystem-write tool that is designed to be invoked by an LLM agent is a direct line to code execution if the written file lands somewhere executable (a cron directory, a web-served path, an imported Python module, etc.). Exploitability depends heavily on deployment: if an application lets end users or untrusted content influence the filename/content arguments passed to FileWriterTool — directly via an API, or indirectly via prompt injection that manipulates the agent into calling the tool with attacker-chosen parameters — exploitation is straightforward (classic CWE-22 path traversal, no novel technique required). No public exploit code, Nuclei template, or CISA KEV listing exists yet, and EPSS/exploit-maturity data is unavailable, so real-world exploitation likelihood cannot currently be quantified; this should be reassessed as scanner/exploit tooling emerges.
How does the attack unfold?
How severe is it?
What is the attack surface?
What should I do?
1 stepUpgrade crewai-tools past the vulnerable 1.10.2rc1 baseline once a formally versioned patch release is available, or apply the fix in commit https://github.com/crewAIInc/crewAI/commit/713fa7d directly if pinned to a pre-patch revision. Until upgraded, restrict FileWriterTool's allowed output directory via an explicit allow-list/base-path check at the application layer (reject any resolved path that escapes the intended root), and never pass raw LLM- or user-generated strings directly as filenames without canonicalizing and validating them server-side. Run agent processes under least-privilege service accounts with a chroot/sandboxed or read-only filesystem where possible so a write-primitive cannot reach sensitive paths. For detection, monitor for file writes outside expected agent output directories and alert on filenames containing traversal sequences ('../', encoded variants) reaching tool-invocation logs.
What does CISA's SSVC say?
Source: CISA Vulnrichment (SSVC v2.0). Decision based on the CISA Coordinator decision tree.
How is it classified?
Which compliance frameworks are affected?
This CVE is relevant to:
Frequently Asked Questions
What is CVE-2026-37007?
A path traversal flaw in the built-in FileWriterTool of crewai-tools (versions up to 1.10.2rc1) lets an attacker supply crafted '../' sequences in the filename argument to write files outside the tool's intended output directory, ultimately enabling remote code execution. CrewAI is a widely adopted multi-agent orchestration framework, and FileWriterTool is a stock tool many agent builders wire up to let agents persist output to disk — meaning any deployment that exposes this tool to user input or LLM-generated arguments (including via prompt injection) inherits the flaw. There is no CVSS score, EPSS data, CISA KEV listing, public exploit, or Nuclei template available yet, and the advisory was only published 2026-08-27, so this should be treated as an unconfirmed-severity but plausible RCE rather than an active-exploitation emergency. The maintainers have already shipped a fix (commit 713fa7d in crewAIInc/crewAI); teams running crewai-tools should upgrade past 1.10.2rc1 immediately and, in the meantime, restrict FileWriterTool's writable path scope and treat any LLM-controlled filename argument as untrusted input requiring strict sanitization.
Is CVE-2026-37007 actively exploited?
Proof-of-concept exploit code is publicly available for CVE-2026-37007, increasing the risk of exploitation.
How to fix CVE-2026-37007?
Upgrade crewai-tools past the vulnerable 1.10.2rc1 baseline once a formally versioned patch release is available, or apply the fix in commit https://github.com/crewAIInc/crewAI/commit/713fa7d directly if pinned to a pre-patch revision. Until upgraded, restrict FileWriterTool's allowed output directory via an explicit allow-list/base-path check at the application layer (reject any resolved path that escapes the intended root), and never pass raw LLM- or user-generated strings directly as filenames without canonicalizing and validating them server-side. Run agent processes under least-privilege service accounts with a chroot/sandboxed or read-only filesystem where possible so a write-primitive cannot reach sensitive paths. For detection, monitor for file writes outside expected agent output directories and alert on filenames containing traversal sequences ('../', encoded variants) reaching tool-invocation logs.
What systems are affected by CVE-2026-37007?
This vulnerability affects the following AI/ML architecture patterns: agent frameworks, AI agent tool integrations, autonomous multi-agent pipelines with filesystem write access.
What is the CVSS score for CVE-2026-37007?
CVE-2026-37007 has a CVSS v3.1 base score of 9.8 (CRITICAL). The EPSS exploitation probability is 0.99%.
What is the AI security impact?
Affected AI Architectures
MITRE ATLAS Techniques
AML.T0010.005AI Agent ToolAML.T0050Command and Scripting InterpreterAML.T0053AI Agent Tool InvocationAML.T0112Machine CompromiseCompliance Controls Affected
What are the technical details?
Original Advisory
A vulnerability in FileWriterTool in crewai-tools <= 1.10.2rc1 allows a remote attacker to achieve code execution via malicious path traversal sequences in the filename argument.
Exploitation Scenario
An organization deploys a customer-facing support or research assistant built on crewai, wiring FileWriterTool so the agent can save generated reports to a working directory. An attacker interacting with the assistant — either by directly controlling an exposed filename parameter or by embedding a prompt injection payload in content the agent processes (e.g., a document it's asked to summarize) — steers the agent into invoking FileWriterTool with a filename like '../../../../etc/cron.d/task' or a path landing inside the application's own code directory. The unsanitized write lands outside the intended output folder, planting a malicious script or scheduled job that executes with the host's privileges, giving the attacker remote code execution and a foothold to pivot to any credentials or connected systems accessible from that host.
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HTimeline
Related Vulnerabilities
CVE-2025-5952810.0Flowise: Unauthenticated RCE via MCP config injection
Same attack type: Supply ChainCVE-2024-291210.0BentoML: RCE via insecure deserialization (CVSS 10)
Same attack type: Supply ChainCVE-2023-376510.0MLflow: path traversal allows arbitrary file read
Same attack type: Supply ChainCVE-2025-512010.0smolagents: sandbox escape enables unauthenticated RCE
Same attack type: Supply ChainCVE-2026-2185810.0n8n: Input Validation flaw enables exploitation
Same attack type: Code Execution