CVE-2026-51857 Code injection in n/a

Critical 9.8 Published Updated

Attackers can execute arbitrary Python code via model outputs in camel-ai due to missing approval boundaries in the CodeExecutionToolkit.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2026-51857?

CVE-2026-51857 is a critical code injection vulnerability in n/a, published on 30 Sep 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

In camel-ai camel 0.2.91a1, v0.2.91a2 and v0.2.91a3, CodeExecutionToolkit can run model-produced Python code through SubprocessInterpreter without an approval boundary.

Weakness: CWE-94

Which versions are affected by CVE-2026-51857?

How do I fix CVE-2026-51857?

No fix has been published for CVE-2026-51857 yet. Limit exposure of the affected software until one is available.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2026-51857 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-51857 exists.

Sources

Also known as GHSA-q2f7-8vfc-xg45.

Is CVE-2026-51857 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free