Skip to main content

AgentCore CLI CVE-2026-11393

| EUVDEUVD-2026-35187 HIGH
Code Injection (CWE-94)
2026-06-08 AMZN GHSA-m4x6-gwgp-4pm7
8.8
CVSS 4.0 · Vendor: AMZN
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain write access to Bedrock collaborator
  2. Delivery
    Plant triple-quote payload in collaborationInstruction
  3. Exploit
    Victim runs agentcore import
  4. Execution
    Generated Python docstring escapes into code
  5. Persist
    Injected code runs on victim workstation and AgentCore Runtime
  6. Impact
    Abuse 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

AgentCore CLI 0.3.0-preview.7.0 ≤1.0.0-preview.8
AgentCore CLI 0.4.0 ≤0.14.1

Affected Packages

npm @aws/agentcore fix: 0.14.2, 1.0.0-preview.9
euvd agentcore_cli no fix

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

Vendor (AMZN) PRIMARY 8.8 HIGH
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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
Low
User Interaction
Active
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
High
Subsequent system: Integrity
High
Subsequent system: Availability
High

Lifecycle Timeline

2
Severity Changed
Jun 08, 2026 - 19:22 NVD
CRITICAL HIGH
CVSS changed
Jun 08, 2026 - 19:22 NVD
9.0 (CRITICAL) 8.8 (HIGH)

DescriptionCVE.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

Why It Matters

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.

Business Impact: Severe
Compensating Controls

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

EPSS Score
0.0%
Top 87% exploitable
Threat Intel
1
1 sources
Exploit
POC
Public exploit code exists
Social Media
2
Sightings
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC Yes
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
Very High
Technical Impact
Total

Priority Score

64
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Code Injection CRITICAL

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.

More in Python

View all
CVE-2025-24016 CRITICAL POC
9.9 Feb 10

Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t

CVE-2025-27520 CRITICAL POC
9.8 Apr 04

BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser

CVE-2025-2945 CRITICAL POC
9.9 Apr 03

pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi

CVE-2013-5093 MEDIUM POC
6.8 Sep 27

The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python

CVE-2025-32375 CRITICAL POC
9.8 Apr 09

BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica

CVE-2014-0224 HIGH POC
7.4 Jun 05

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

CVE-2024-21644 HIGH POC
7.5 Jan 08

pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.

CVE-2026-33017 CRITICAL POC
9.3 Mar 17

Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301

CVE-2017-9462 HIGH POC
8.8 Jun 06

In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse

CVE-2026-49869 CRITICAL POC
10.0 Jun 26

Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2024-21645 MEDIUM POC
5.3 Jan 08

pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy