AWS AgentCore CLI
Code injection via improper triple-quote escaping in AgentCore CLI Bedrock Agent import
Improper neutralization of triple-quote characters during Python code generation in AgentCore CLI before v0.14.2 might allow an authenticated remote threat actor to execute arbitrary code on AWS AgentCore Runtime under the imported agent's IAM execution role and on the local environment of another user in the same AWS account, via a crafted collaborationInstruction stored on a Bedrock Agent collaborator and later processed by that other user during agent import. To remediate this issue, users should upgrade to version 0.14.2.
Affected versions and mitigation
From the CVE record, GitHub Security Advisories and the vendor's references.Affected
- >= 0.4.0, <= 0.14.1
- >= 0.3.0-preview.7.0, <= 1.0.0-preview.8
- >= 0.4.0, < 0.14.2
Fixed in 0.14.2
from GitHub Security Advisory GHSA-m4x6-gwgp-4pm7
- >= 0.3.0-preview.7.0, <= 0.3.0-preview.9.0
from GitHub Security Advisory GHSA-m4x6-gwgp-4pm7
- >= 1.0.0-preview.1, < 1.0.0-preview.9
Fixed in 1.0.0-preview.9
from GitHub Security Advisory GHSA-m4x6-gwgp-4pm7
Mitigation
Upgrade @aws/agentcore to 0.14.2 or later.
Upgrade @aws/agentcore to 1.0.0-preview.9 or later.
References
- Patch github.com/aws/agentcore-cli/releases/tag/v0.1…
- Patch npmjs.com/package/@aws/agentcore/v/0.14.2
- Patch npmjs.com/package/@aws/agentcore/v/1.0.0-prev…
2 more
- Vendor advisory aws.amazon.com/security/security-bulletins/2026-04…
- Vendor advisory github.com/aws/agentcore-cli/security/advisori…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.