Skip to content
HighVulnerability

CVE-2026-11393 - Code Injection via Improper Triple-Quote Escaping in AgentCore CLI Bedrock Agent Import

Published
Record updated
View JSON

Summary

CVE-2026-11393 is a code injection flaw in the AWS AgentCore CLI (@aws/agentcore) affecting versions >= 0.4.0 through <= 0.14.1 and preview versions >= 0.3.0-preview.7.0 through <= 1.0.0-preview.8. The collaborationInstruction field of a Bedrock Agent collaborator association is interpolated into a triple-quoted Python docstring using single-quote escaping, so a value containing """ breaks out of the docstring in the main.py generated by "agentcore add agent --type import". An authenticated user in the same AWS account with bedrock:AssociateAgentCollaborator permission can exploit this, and the injected code runs with the credentials of the context where the generated file is executed, via agentcore dev or agentcore deploy followed by agentcore invoke.

Mitigation

The source does not state a fix yet. Check the original advisory for updates.