(0Day) CrewAI crewAI Framework Agent Loading Unsafe Reflection Remote Code Execution Vulnerability
The load_agent_from_repository function in CrewAI does not properly restrict a user-supplied argument before using it to import a module. An attacker can exploit this to execute arbitrary code in the context of the service account when a malicious agent configuration is loaded.
Originally disclosed on Zero Day Initiative
This vulnerability allows remote attackers to execute arbitrary code on affected installations of CrewAI crewAI. User interaction is required to exploit this vulnerability in that the target must load a malicious agent configuration from the repository.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Impact
An attacker could execute arbitrary code in the context of the service account, but user interaction is required because the target must load a malicious agent configuration.
What the attacker needed
Target loads a malicious agent configuration
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
CrewAI is a framework for building AI agents. A function that loads agent configurations from a repository takes a value from the user and uses it to import code without checking it. This lets an attacker make the system run their own code, which is dangerous because it can take over the service.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.