Skip to main content
Live Webinar with SANS (June 25)— Agentic CTI Automation for Fun & ProfitRegister Free
Mallory
Unrated

Command Injection in AWS Bedrock AgentCore Python SDK install_packages()

IdentifiersCVE-2026-12530CWE-88

CVE-2026-12530 is a command injection vulnerability in the AWS Bedrock AgentCore Python SDK affecting versions >= 1.1.3 and < 1.6.1. The flaw is in the install_packages() method used by the Code Interpreter client, where package name arguments were sanitized with an incomplete blocklist before being incorporated into a shell command equivalent to 'pip install'. Because argument delimiters and pip options were not properly neutralized, a remote authenticated user could supply crafted package name arguments that bypass validation. Reported abuse paths include injecting pip flags such as '--index-url' to redirect package resolution to an attacker-controlled package repository and '-r' to cause pip to read files from within the sandbox. The result is arbitrary command execution within the Code Interpreter sandbox and unintended access to sandbox-resident data.

Share:
For your environment

Are you exposed to this one?

Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.

ANALYST BRIEF

Impact, mitigation & remediation

What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation allows a remote authenticated attacker to manipulate package installation behavior and achieve arbitrary command execution within the Code Interpreter sandbox. This can enable execution of attacker-controlled code, redirection of dependency retrieval to a malicious PyPI-compatible server, exposure of arbitrary files accessible from the sandbox via pip option abuse, and disclosure of environment data present in the sandbox. The vulnerability has high confidentiality, integrity, and availability impact within the sandboxed execution context.

Mitigation

If you can’t patch tonight, do this now.

If immediate upgrade is not possible, do not pass user-supplied or externally influenced strings directly to install_packages(). Restrict package installation to a fixed application-side allowlist of approved package names, reject any package arguments containing option-like prefixes or delimiter characters, and avoid exposing package installation functionality to untrusted users or workflows until the SDK is upgraded.

Remediation

Patch, then assume compromise.

Upgrade the AWS Bedrock AgentCore Python SDK (bedrock-agentcore) to version 1.6.1 or later, which fixes the vulnerable install_packages() handling. Any forked, vendored, or derivative implementations of the affected logic should also be updated to incorporate the vendor's fix. Validate that deployments are no longer using versions >= 1.1.3 and < 1.6.1.
PUBLIC EXPLOITS

Exploits

No public exploits tracked yet. Mallory keeps watching.

VALID 0 / 0 TOTALView more in app

No public exploit code observed for this vulnerability.

EXPOSURE SURFACE

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
Amazon Web ServicesBedrock-Agentcoreapplication

Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.

What this page doesn’t show

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, which detections to deploy, and what to do tonight.
Exposure mapping

Query your assets running an affected version, and investigate the blast radius.

Threat actor evidence

Every observed campaign linking this CVE to a named adversary.

Associated malware

Malware families riding this exploit, with evidence and IOCs.

Detection signatures

YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.

Vendor-by-vendor mapping

Cross-references every affected SKU, including bundled OEM variants.

Social activity4

Community discussion across Reddit, Mastodon, and other social sources.