DEV Community

CVE Reports
CVE Reports

Posted on • Originally published at cvereports.com

CVE-2026-11393: CVE-2026-11393: Code Injection via Improper Triple-Quote Escaping in AWS AgentCore CLI

CVE-2026-11393: Code Injection via Improper Triple-Quote Escaping in AWS AgentCore CLI

Vulnerability ID: CVE-2026-11393
CVSS Score: 9.0
Published: 2026-07-29

A critical code injection vulnerability exists in @aws/agentcore CLI (AWS AgentCore CLI) during the Bedrock Agent import lifecycle. An authenticated remote attacker with permissions to configure Bedrock collaborator attributes can inject python code by embedding triple-double-quotes (""") inside the collaborationInstruction metadata field. The CLI formats this metadata directly into a Python docstring in a generated main.py file without adequate escaping, leading to arbitrary code execution when the imported agent is run or deployed.

TL;DR

Improper validation of triple-double-quotes in AWS AgentCore CLI's Bedrock Agent import allows remote code execution when local or cloud environments execute generated code.


⚠️ Exploit Status: POC

Technical Details

  • CWE ID: CWE-94
  • Attack Vector: Network (Low Privileges Required)
  • CVSS v3.1: 9.0 (Critical)
  • EPSS Score: 0.00322
  • Impact: Arbitrary Code Execution
  • Exploit Status: Proof-of-Concept
  • KEV Status: Not Listed

Affected Systems

  • @aws/agentcore CLI
  • Amazon Bedrock Agent Import Lifecycle
  • @aws/agentcore (Stable): >= 0.4.0 to <= 0.14.1 (Fixed in: 0.14.2)
  • @aws/agentcore (Preview): >= 0.3.0-preview.7.0 to <= 1.0.0-preview.8 (Fixed in: 1.0.0-preview.9)

Code Analysis

Commit: ae1b932

fix(import): escape triple-quotes in collaborationInstruction to prevent docstring injection

Exploit Details

Mitigation Strategies

  • Upgrade @aws/agentcore to version 0.14.2 (stable) or 1.0.0-preview.9 (preview)
  • Restrict IAM permissions for Bedrock Agent configuration updates
  • Perform code reviews of generated main.py files prior to execution

Remediation Steps:

  1. Identify active installations of @aws/agentcore CLI
  2. Execute 'npm install -g @aws/agentcore@0.14.2' or upgrade the local package dependency
  3. Scan local python files for unescaped triple quotes inside 'collaboratorInstruction'
  4. Audit CloudTrail logs for bedrock-agent:UpdateAgentCollaborator events

References


Read the full report for CVE-2026-11393 on our website for more details including interactive diagrams and full exploit analysis.

Top comments (0)