---
id: CVE-2026-51858
title: >-
  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.
summary: >-
  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.
severity: critical
cvss: 9.8
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'
cwe:
  - CWE-94
published: '2026-09-30'
updated: '2026-10-02'
sourceUpdated: '2026-10-02T20:17:02.550'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-51858'
references:
  - url: 'https://gist.github.com/Ro1ME/1efc7b63bded3e4d39c54ff7b0caedf4'
    label: cve@mitre.org
  - url: 'https://github.com/camel-ai/camel/issues/4038'
    label: cve@mitre.org
  - url: 'https://github.com/camel-ai/camel/issues/4038'
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
tags:
  - nvd
  - cve.org
  - exploit-available
exploitAvailable: true
ssvc:
  exploitation: poc
  automatable: 'yes'
  technicalImpact: total
  timestamp: '2026-10-02T19:17:34.097988Z'
epss: 0.00619
epssPercentile: 0.49458
ingestedAt: '2026-09-30T21:25:07.842Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
