Amazon Bedrock AgentCore Flaws Could Expose AWS Credentials
Two Amazon Bedrock AgentCore SDK flaws (CVE-2026-12530, CVE-2026-16796) enabled command execution inside AI sandboxes and exposure of attached AWS credentials; patched in 1.18.1.
BeyondTrust disclosed two flaws in Amazon Bedrock AgentCore's Python SDK Code Interpreter package-installation helper: CVE-2026-12530 (AgentCore 1.1.3-1.6.0) let a crafted package name bypass an incomplete character blocklist to execute shell commands in the sandbox, while CVE-2026-16796 abused pip extras syntax to bypass the first fix, affecting all versions before 1.18.1. Attackers could then read temporary credentials belonging to the Code Interpreter's execution role, with impact depending on the role's IAM permissions, and their activity could look legitimate in AWS logs. AWS fixed both issues in SDK 1.18.1 with stricter validation, and the underlying Firecracker sandbox isolation held. AWS scored both vulnerabilities CVSS 3.1 7.3 and CVSS 4.0 8.4, advising upgrades and never passing untrusted or model-generated package names to the helper.
- CVE-2026-12530 bypassed SDK blocklist via crafted package names for sandbox command execution
- CVE-2026-16796 abused pip extras syntax to bypass the first fix; patched in 1.18.1
- Attackers could read Code Interpreter execution role credentials, appearing as legitimate AWS activity
- AWS scored both flaws CVSS 7.3 (v3.1) and 8.4 (v4.0)
- Organizations
- AmazonBeyondTrust
Vulnerabilities mentioned
All| CVE | Vulnerability | CVSS | EPSS | Signals | Published |
|---|---|---|---|---|---|
| CVE-2026-12530 | Improper neutralization of argument delimiters in the install_packages() method in AWS Bedrock AgentCore Python SDK versions >= 1.1.3 and < 1.6.1 might allow a… | 8.4 | <1% | ||
| CVE-2026-16796 | Improper neutralization of argument delimiters in the install_packages() method in AWS Bedrock AgentCore Python SDK before 1.18.1 might allow a remote… | 8.4 | <1% |
From the original article
2 min read at infosecurity-magazine.com
AWS AgentCore SDK flaws could let attackers run commands in AI sandboxes and reach AWS credentials
By Alessandro Mascellino · infosecurity-magazine.com
A short excerpt; the article and its images belong to the publisher. Summary, key facts and assessment above are AI-written from the article and can be wrong.