CVE-2026-12530: Command Injection in AWS Bedrock AgentCore Python SDK install_packages()
- Vendor
- Amazon Web Services
CVE-2026-12530 is an argument-injection vulnerability in the AWS Bedrock AgentCore Python SDK's Code Interpreter install_packages() method. Versions 1.1.3 through 1.6.0 improperly neutralize package-name argument delimiters using incomplete validation before constructing a pip installation command. A remote authenticated attacker who can control package-name input can supply crafted arguments that bypass validation and execute arbitrary commands inside the Code Interpreter sandbox. The flaw can also be used to alter pip behavior, including selecting an attacker-controlled package repository or causing pip to process a requirements-file argument.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation permits arbitrary command execution within the Code Interpreter sandbox. An attacker may redirect package resolution to an attacker-controlled PyPI repository or read and expose arbitrary sandbox files and environment variables through manipulated pip arguments. Where the Code Interpreter is configured with an AWS execution role, command execution may expose that role's temporary credentials; resulting access to other AWS services depends on the role's IAM permissions.
Mitigation
If you can’t patch tonight, do this now.
Until the SDK can be upgraded, do not pass user-supplied, externally influenced, untrusted repository-derived, or model-generated package strings to install_packages(). Restrict installation requests in application code to a fixed allowlist of approved package names. Do not assign a Code Interpreter execution role when AWS access is unnecessary; otherwise, minimize the role's IAM permissions and monitor Code Interpreter activity.
Remediation
Patch, then assume compromise.
Upgrade the AWS Bedrock AgentCore Python SDK (bedrock-agentcore) to version 1.6.1 or later. Apply the vendor fix to forked or derivative implementations of the affected package-installation helper. Because a later package-input validation bypass was identified in the same helper, upgrading to version 1.18.1 or later provides the complete set of subsequently reported fixes.
Exploits
No public exploits tracked yet. Mallory keeps watching.
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.
Frequently asked questions
- Is CVE-2026-12530 exploited in the wild?
- As of Sep 30, 2026, Mallory has no reports of CVE-2026-12530 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2026-12530?
- As of Sep 30, 2026, Mallory has found no public exploit for CVE-2026-12530.
- Is there a patch for CVE-2026-12530?
- Upgrade the AWS Bedrock AgentCore Python SDK (bedrock-agentcore) to version 1.6.1 or later. Apply the vendor fix to forked or derivative implementations of the affected package-installation helper.
- What products are affected by CVE-2026-12530?
- Amazon Web Services Bedrock-Agentcore.
- How severe is CVE-2026-12530?
- CVE-2026-12530 has a CVSS v4 score of 8.4 (High) and an EPSS score of 0.59% (42nd percentile) as of Sep 30, 2026.
Recent activity
7 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.