Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain write access to Bedrock collaborator
-
DeliveryPlant triple-quote payload in collaborationInstruction
-
ExploitVictim runs agentcore import
-
ExecutionGenerated Python docstring escapes into code
-
PersistInjected code runs on victim workstation and AgentCore Runtime
-
ImpactAbuse imported agent's IAM execution role
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Attacker must (1) hold authenticated AWS credentials with permission to set the collaborationInstruction field on a Bedrock Agent collaborator in the target account, and (2) induce a second user in the same AWS account to run the AgentCore CLI import command against that collaborator - UI:R in the CVSS vector reflects this required victim action. Exploitation is limited to environments where AgentCore CLI before v0.14.2 (or preview before 1.0.0-preview.9) is installed and used to import Bedrock collaborators authored by another principal; deployments that do not use cross-user Bedrock collaborator sharing, or that have already upgraded, are not exposed. No special CLI flags or non-default configuration are required beyond normal use of the import command. |
| Impact | The CVSS:3.1 vector AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H yields 9.0 and reflects the cross-tenant blast radius: a low-privileged authenticated actor in one AWS account context plants a payload, and a second user's import (UI:R) detonates it, with Scope:Changed because execution spreads to AgentCore Runtime under a different IAM role plus the victim's local workstation. Reported by AMZN with a vendor advisory (aws.amazon.com/security/security-bulletins/2026-040-aws/) and a GitHub Security Advisory (GHSA-m4x6-gwgp-4pm7), so the bug is vendor-confirmed and patched. There is no EPSS score or KEV listing provided, and no public exploit identified at time of analysis - exploitation requires UI:R plus the social-engineering step of convincing a same-account collaborator to import the poisoned agent, which constrains opportunistic mass exploitation but makes it a credible insider-threat / supply-chain risk inside AWS organizations using Bedrock multi-agent setups. Treat as a real priority for any team using AgentCore CLI to import third-party or cross-team Bedrock collaborators. |
| Exploit ScenarioDerived | An attacker with permission to update a Bedrock Agent collaborator in a shared AWS account sets its collaborationInstruction to a string that closes the generated Python triple-quoted docstring and appends malicious Python (for example, code that exfiltrates AWS credentials or writes an SSH key). A teammate later runs agentcore import to pull that collaborator into their own workflow; the CLI emits and executes the poisoned Python both locally on the teammate's workstation and on AWS AgentCore Runtime under the imported agent's IAM execution role, giving the attacker code execution in two distinct trust contexts. No public PoC is identified, but the upstream commit message names the exact sink ("escape triple-quotes in collaborationInstruction to prevent docstring injection"), making PoC construction straightforward for a knowledgeable attacker. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 08, 2026
Remote code execution in AWS AgentCore CLI before v0.14.2 allows authenticated attackers to inject Python code via crafted collaborationInstruction strings stored on Bedrock Agent collaborators. When another user in the same AWS account imports the agent, the malicious triple-quote payload breaks out of the generated Python docstring and executes attacker-controlled code on AWS AgentCore Runtime under the imported agent's IAM execution role, as well as on the importing user's local environment. No public exploit identified at time of analysis, but the cross-user, cross-environment scope and 9.0 CVSS rating make this a high-priority patch.
RemediationAI
Vendor-released patch: upgrade AgentCore CLI to v0.14.2 (npm install -g @aws/agentcore@0.14.2) or, if tracking the preview line, to 1.0.0-preview.9; the fix is PR #1329 which escapes triple-quote sequences in collaborationInstruction before they are embedded in generated Python. Patched releases are available at https://github.com/aws/agentcore-cli/releases/tag/v0.14.2 and https://www.npmjs.com/package/@aws/agentcore/v/0.14.2, with vendor guidance at https://aws.amazon.com/security/security-bulletins/2026-040-aws/. Until upgrade is complete, compensating controls include restricting which IAM principals can write to collaborationInstruction on shared Bedrock Agent collaborators (via IAM policy on bedrock:UpdateAgentCollaborator and related actions), reviewing collaborationInstruction values for triple-quote characters or Python syntax before running agentcore import, and running imports only inside isolated workstations or sandboxed roles so that any code execution is contained - the trade-off is operational friction for teams that legitimately share Bedrock collaborators across accounts.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in npm, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
AgentCore CLI is the AWS command-line tool (distributed via npm as @aws/agentcore) for managing Amazon Bedrock multi-agent workflows, including importing existing Bedrock Agent collaborators. During import, the CLI generates Python source code that embeds the collaborationInstruction field - supplied by the upstream collaborator agent - inside a triple-quoted Python string (docstring). The CWE-94 root cause is improper neutralization of triple-quote characters (""") in this code-generation step: an attacker who controls the collaborationInstruction can close the docstring and append arbitrary Python statements that the generator emits verbatim. The upstream fix in PR #1329 ("escape triple-quotes in collaborationInstruction to prevent docstring injection") confirms this is a classic code-generation injection bug rather than a runtime eval flaw. The affected CPE is cpe:2.3:a:aws:agentcore_cli:*, and the same fix landed in the 1.0.0-preview.9 preview line.
Know when Python gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:A/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
Primary rating from Vendor (AMZN) · only source for this CVE.
CVSS VectorVendor: AMZN
Lifecycle Timeline
2DescriptionCVE.org
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.
Executive ViewAI
AWS AgentCore CLI contains a critical remote code execution vulnerability (CVSS 9.0) affecting authenticated users who import malicious Bedrock Agent collaborators. An authenticated attacker can inject Python code that executes on the importing user's local environment and within AWS under the target's IAM execution role, enabling lateral movement and privilege escalation across agent configurations. Immediate patching is required to prevent unauthorized code execution within AWS accounts.
Apply vendor patch. Interim mitigations prior to patching: restrict Bedrock Agent imports to pre-approved collaborators only; monitor AWS CloudTrail for unexpected code execution under agent IAM roles; disable AgentCore CLI agent imports until patching complete.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t
BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser
pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi
The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python
BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica
OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph
pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.
Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301
In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse
Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to
Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/
pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne
EUVD-2026-35187
GHSA-m4x6-gwgp-4pm7
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB