Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to AgentCore environment
-
DeliverySupply crafted package name to install_packages()
-
ExploitArgument delimiters reinterpreted as command options
-
ExecutionExecute arbitrary commands in Code Interpreter sandbox
-
ImpactAccess or tamper with sandbox data
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Argument sanitization
|
| Exploitation Conditions | Exploitation requires an authenticated AgentCore user (CVSS PR:L) and active user interaction (UI:A), and specifically requires that the crafted, attacker-controlled input reaches the install_packages() method of the Bedrock AgentCore Python SDK as a package name argument - i.e. a code path or agent workflow that installs packages using caller-supplied names. The exact concrete prerequisite is that the application invokes install_packages() with a package name string that the attacker can influence within a Code Interpreter sandbox session on an SDK version earlier than 1.18.1. Limiting factors that constrain real-world risk: the attacker must already be an authorized user of the AgentCore environment, some user/agent interaction must trigger the vulnerable install call, and the impact is contained to the Code Interpreter sandbox (no confirmed subsequent-system or host impact, availability impact None). |
| Impact | The signals are moderately concerning but not emergency-tier. The CVSS 4.0 base score is 8.4 (High) with a network attack vector, low attack complexity (AV:N/AC:L/AT:N) and high confidentiality/integrity impact (VC:H/VI:H), but two factors materially lower real-world risk: PR:L means the attacker must already be an authenticated user of the AgentCore environment, and UI:A means active user interaction is part of the attack path. Availability impact is None and there is no subsequent-system impact (SC/SI/SA:N), so the blast radius is scoped to the Code Interpreter sandbox rather than the broader host. EPSS is not provided in the input, so exploitation probability cannot be quantified, and there is no KEV listing and no evidence of a public PoC - so this is a real priority to patch for anyone running AgentCore agents, but not currently mass-exploited. Note a mild tension worth verifying: the CVSS labels the vector as network (AV:N) while exploitation fundamentally depends on being an authorized AgentCore user submitting package input, so treat 'remote' as 'remote authenticated tenant', not anonymous internet-facing. |
| Exploit ScenarioDerived | An authenticated user (or an agent whose package input the user can influence) submits a crafted package name containing argument delimiters to a workflow that calls install_packages(); the delimiters are interpreted as extra command options or a chained command, causing arbitrary commands to run inside the Code Interpreter sandbox. Because the attack requires active user interaction and authenticated access, a realistic path is a malicious or manipulated agent instruction that supplies the poisoned package string during a code-execution session. No public exploit code has been identified at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – Jul 23, 2026
Argument injection in the AWS Bedrock AgentCore Python SDK before 1.18.1 lets a remote authenticated user run arbitrary commands inside the Code Interpreter sandbox by embedding shell/argument delimiters in package names passed to install_packages(). Because the CVSS vector is PR:L, an attacker needs some level of authenticated access and the flaw requires user interaction (UI:A) with a high confidentiality and integrity impact (CVSS 4.0 base 8.4). There is no public exploit identified at time of analysis and the issue is not listed in CISA KEV.
Earlier versions of this analysis (1)
Command injection in the AWS Bedrock AgentCore Python SDK before 1.18.1 lets a remote authenticated user execute arbitrary commands inside the Code Interpreter sandbox by smuggling shell/argument delimiters through crafted package-name arguments to install_packages(). The flaw (CWE-88, argument-delimiter neutralization failure) carries a 7.3 CVSS and is patched in 1.18.1; there is no public exploit identified at time of analysis and it is not in CISA KEV.
RemediationAI
Vendor-released patch: upgrade the bedrock-agentcore Python package to version 1.18.1 or later (for example via 'pip install --upgrade bedrock-agentcore==1.18.1'), as directed by AWS security bulletin 2026-065 (https://aws.amazon.com/security/security-bulletins/2026-065-aws/) and advisory GHSA-j6g5-3hh3-pgw8. This is the primary and authoritative fix. Until the upgrade is deployed, reduce exposure by not passing untrusted or agent/LLM-generated package names directly into install_packages(): validate package names against a strict allowlist or a conservative regex (letters, digits, dots, hyphens, underscores only, rejecting whitespace, leading dashes, and shell metacharacters), and pin dependencies to a vetted manifest rather than accepting free-form package arguments - the trade-off is reduced flexibility for agents that dynamically install packages. Because impact is confined to the Code Interpreter sandbox, also review and tighten the sandbox's outbound network and permission scope so that even successful in-sandbox command execution cannot reach sensitive resources.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in pypi
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The affected component is the AWS Bedrock AgentCore Python SDK, the client library used to build and orchestrate agents on Amazon Bedrock AgentCore, which includes a managed Code Interpreter sandbox for executing agent-generated code and installing dependencies. The root cause is CWE-88 (Improper Neutralization of Argument Delimiters in a Command, 'Argument Injection'): the install_packages() method passes user-influenced package name strings into an underlying package-installation command without properly neutralizing argument delimiters (such as spaces, dashes introducing new flags, or shell metacharacters). This allows crafted 'package name' input to be reinterpreted as additional command-line options or separate commands, turning a dependency-install feature into an arbitrary command execution primitive within the sandbox. The CPE identifies the affected package as cpe:2.3:a:aws:bedrock-agentcore_1.18.1, i.e. the bedrock-agentcore Python distribution on PyPI prior to 1.18.1.
Know when AWS 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:N/PR:L/UI:A/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
Authenticated user supplies input (PR:L) with required interaction (UI:R); command execution stays within the sandbox authority (S:U) yielding high confidentiality and integrity but no availability impact.
Primary rating from Vendor (AMZN).
CVSS VectorVendor: AMZN
Lifecycle Timeline
3DescriptionCVE.org
Improper neutralization of argument delimiters in the install_packages() method in AWS Bedrock AgentCore Python SDK before 1.18.1 might allow a remote authenticated user to execute arbitrary commands within the Code Interpreter sandbox via crafted package name arguments.
To mitigate this issue, users should upgrade to the patched version 1.18.1.
Articles & Coverage 1
Executive ViewAI
AWS Bedrock AgentCore Python SDK versions prior to 1.18.1 contain a vulnerability allowing authenticated users to execute unauthorized code within production AI deployments, potentially compromising sensitive data and business intelligence. Organizations using this SDK must prioritize immediate patching to prevent unauthorized access to information processed by their AI systems.
Apply vendor patch.
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
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
Loom for AWS deployments running a version before 1.6.1 with no identity provider configured expose an unauthenticated s
Unauthorized data access in Budibase low-code platform before 3.30.4 allows unauthenticated users to manipulate internal
Authenticated Typebot users can abuse the webhook block (HTTP Request component) in versions prior to 3.13.1 to issue ar
Multiple vulnerabilities in ASTPP 4.0.1 including XSS and command injection in SIP device configuration and plugin manag
Remote code execution in Amazon awslabs postgres-mcp-server before 1.1.7 lets remote actors run arbitrary OS commands on
Remote code execution in AWS AgentCore CLI before v0.14.2 allows authenticated attackers to inject Python code via craft
Denial of service in the aws-smithy-json Rust runtime crate (versions before 0.62.7) lets remote unauthenticated attacke
Denial of service in Amazon's aws-smithy-http-server Rust crate (versions prior to 0.66.5) lets remote unauthenticated a
Arbitrary file read in amazon-mq rabbitmq-aws before 0.2.1 allows authenticated remote users to read any file accessible
WAF managed-rule body inspection on AWS Application Load Balancer (ALB) can be bypassed by remote actors who fragment an
WAF inspection bypass in Amazon CloudFront (with AWS WAF enabled) lets remote actors smuggle malicious request bodies pa
A trust boundary enforcement vulnerability in Kiro IDE allows remote attackers to execute arbitrary code when a local us
EUVD-2026-48422
GHSA-j6g5-3hh3-pgw8
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB