CVE-2026-37007

CrewAI · crewai-tools

The FileWriterTool in crewai-tools allows remote unauthenticated attackers to achieve arbitrary code execution by leveraging path traversal sequences within the filename parameter.

Executive summary

A critical remote code execution vulnerability in the crewai-tools FileWriterTool exposes systems to complete compromise by unauthenticated attackers.

Vulnerability

This vulnerability is an input validation flaw where the FileWriterTool fails to sanitize malicious path traversal sequences in the filename argument, allowing an unauthenticated remote attacker to write files to arbitrary locations and execute code.

Business impact

The ability for an unauthenticated attacker to achieve remote code execution represents the highest level of security risk. Successful exploitation could lead to full system takeover, unauthorized access to sensitive data, and total loss of system integrity, justifying the critical CVSS score of 9.8.

Remediation

Immediate Action: Review the project repository for the fix provided in commit 713fa7d and update the crewai-tools dependency to a version containing this security patch.

Proactive Monitoring: Monitor application logs for suspicious file write operations, particularly those containing directory traversal patterns such as "../" or absolute paths targeting system directories.

Compensating Controls: Implement strict input validation or sanitization layers that reject any filename input containing path traversal characters before it reaches the FileWriterTool.

Exploitation status

Public Exploit Available: Unknown.

Analyst recommendation

Given the critical nature of this vulnerability and the potential for complete system compromise, organizations using crewai-tools must prioritize this update. Administrators should verify their current version and apply the upstream fix immediately to prevent potential exploitation of this remote code execution vector.

Sources