CVE-2026-18733 - Prompt injection bypasses shell tool consent gate in Strands Agents Tools
Bulletin ID: 2026-072-AWS
Scope: AWS
Content Type: Important (requires attention)
Publication Date: 08/03/2026 13:30 PM PDT
Description:
Strands Agents is an open-source SDK for building AI agents. The strands-agents-tools package provides pre-built tools for use with the SDK, including the shell tool for executing operating system commands on the agent's host.
We identified CVE-2026-18733. The shell tool includes a human consent gate that prompts the operator to approve commands before they run. The tool also exposed a non_interactive parameter in the input schema that the large language model (LLM) could control. A crafted prompt, for example one delivered through untrusted content the agent reads (indirect prompt injection), could set non_interactive to true, which bypasses the consent gate and allows arbitrary operating system commands to execute on the agent's host without operator approval.
Impacted versions: < 0.8.0
Resolution:
This issue has been addressed in strands-agents-tools version 0.8.0. We recommend upgrading to the latest version and ensuring any forked or derivative code is patched to incorporate the new fixes.
Workarounds:
Until you can upgrade, do not make the shell tool available to an agent that processes untrusted content, and run any agent that uses the shell tool in an isolated, least-privilege environment so that executed commands are contained.
References:
Please email aws-security@amazon.com with any security questions or concerns.