CVE-2026-51858 Command injection in n/a
Attackers can execute arbitrary shell commands via prompt injection in the TerminalToolkit component of the camel-ai library.
- 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-51858?
CVE-2026-51858 is a critical command 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, TerminalToolkit.shell_exec allows prompt-driven shell command execution without an approval boundary.
Weakness: CWE-94
Which versions are affected by CVE-2026-51858?
How do I fix CVE-2026-51858?
No fix has been published for CVE-2026-51858 yet. Limit exposure of the affected software until one is available.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2026-51858 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-51858 exists.
Sources
Also known as GHSA-6r9c-47f4-cxxx.