Intel

AIKIDO-2026-11047

strands-agents-tools is vulnerable to Code Injection

Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Jun 3, 2026
June 3, 2026

88

CVE Score

High

Code Injection

Are you affected? Scan for Free

TL;DR

The calculator tool passes LLM-supplied expression strings through SymPy parsing that ultimately evaluates Python code, so crafted input such as __import__('os').system(...) can execute arbitrary commands on the host running the agent. The cron tool previously wrote unsanitized schedule, command, and raw entry values directly into the user's crontab without confirmation, allowing newline injection to smuggle extra cron lines and persist malicious jobs. The use_aws tool returned boto3 responses verbatim, exposing credential and secret fields from read APIs into LLM conversation history and telemetry. Version 0.6.0 adds AST allowlisting and restricted parsing for calculator, full-line newline sanitization plus consent gating for crontab writes, and response redaction with consent prompts for credential-returning AWS operations.

How do I fix this?

Upgrade the strands-agents-tools library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Versions

0.1.0 - 0.5.3

Fixed in 0.6.0

Background info

strands-agents-tools is vulnerable to Code Injection in versions 0.1.0 - 0.5.3.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea