Skip to main content
Mallory
← Back to News
ai-platform-securitycloud-service-vulnerabilitywidely-deployed-product-advisoryopen-source-dependency-vulnerability

AWS Bedrock AgentCore SDK Flaw Enables Command Injection in Code Interpreter

Emerging Technology Risk · 2 sources · Updated 4mo ago · First seen Jul 23, 2026

AWS Bedrock AgentCore SDK Flaw Enables Command Injection in Code Interpreter

AWS disclosed CVE-2026-16796, a high-severity command argument injection flaw in the Bedrock AgentCore Python SDK before version 1.18.1 that can let an authenticated user execute arbitrary commands inside the Code Interpreter sandbox. The issue affects the install_packages() function, where crafted Python package specifiers and improperly neutralized argument delimiters can be passed into a shell-backed pip install flow, resulting in CWE-88 command injection.

The vulnerability carries a CVSS v3.1 score of 7.3 and can expose sensitive data in the sandbox, including temporary files and environment tokens, with potential for further movement in weakly segmented environments. AWS said the fix in version 1.18.1 tightens validation for package inputs, including PEP 508 extras, and quotes package arguments with shlex.quote; users are advised to upgrade immediately to the patched release.

Why it matters

Impact assessment

CVE-2026-16796 affects organizations using the AWS Bedrock AgentCore Python SDK, specifically deployments that expose the Code Interpreter tool and allow authenticated users to trigger package installation. The immediate impact is arbitrary command execution inside the sandbox container, creating risk of data exposure, token theft, and follow-on internal reconnaissance where sandbox network segmentation is weak.

Severity and scope

  • Affected product: AWS Bedrock AgentCore Python SDK (bedrock-agentcore)
  • Affected versions: 1.6.0 and later before 1.18.1
  • Patched version: 1.18.1
  • Severity: High
  • CVSS v3.1: 7.3
  • CVSS vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N
  • Exposure scope: Limited to environments using the vulnerable SDK and the Code Interpreter package installation flow, but potentially broad across AI-enabled application stacks using Bedrock AgentCore

Business and operational impact

  • Authenticated users can execute arbitrary commands inside the Code Interpreter sandbox container.
  • Sensitive data in the sandbox may be exposed, including temporary files and environment tokens.
  • Weakly segmented environments may permit lateral reconnaissance or access to adjacent internal services.
  • Integrity risk is material because attacker-controlled commands run in the application execution context.
  • Availability impact is not the primary concern based on the published CVSS vector.

Exploitation status

  • Public disclosure occurred on 2026-07-23.
  • PoC availability is reported.
  • No confirmed in-the-wild exploitation is stated in the provided references.
New surface, new adversariesTrack how attackers are adapting to this technology.
Track this risk
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

2 events · Jul 17, 2026 – Jul 23, 2026
  1. Jul 23, 20264mo ago

    CVE-2026-16796 is publicly disclosed

    Public disclosure of CVE-2026-16796 occurred on 2026-07-23. The vulnerability affects AWS Bedrock AgentCore Python SDK versions before 1.18.1 and involves improper neutralization of argument delimiters in install_packages().

    CVE-2026-16796 - Improper neutralization of argument delimiters in AWS Bedrock AgentCore Python SDK install_packages()
  2. Jul 17, 20264mo ago

    AWS releases Bedrock AgentCore Python SDK 1.18.1 fix

    AWS remediated CVE-2026-16796 in bedrock-agentcore version 1.18.1 by tightening package validation and quoting package arguments in the install_packages() flow. The fix addressed an argument injection issue that could let an authenticated user execute arbitrary commands in the Code Interpreter sandbox.

    CVE-2026-16796 - Improper neutralization of argument delimiters in AWS Bedrock AgentCore Python SDK install_packages()
Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

Open in app →

Organizations

1 linked
Amazon Web Services
Do you run this?Follow how adversaries are adapting to this technology, and where it touches your stack today.
Track This Risk
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.