Skip to content
RCE Advisory Intermediate CVE-2026-92206

(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.

Peter Girnus Follow

Originally disclosed on Zero Day Initiative

High 8.8 View original

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.

Peter Girnus (@gothburz), Demeng Chen, and Brandon Niemczyk of Trend Zero Day Initiative, on the Zero Day Initiative

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.

More by Peter Girnus

View all

5 more disclosed reports, best first.

More from Zero Day Initiative

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.