PT-2026-50549 · Aws · Bedrock Agentcore Python Sdk
CVSS v3.1
7.3
High
| Vector | AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N |
Name of the Vulnerable Software and Affected Versions
AWS Bedrock AgentCore Python SDK versions 1.1.3 through 1.6.0
Description
Improper neutralization of argument delimiters in the
install packages() method of the Code Interpreter client allows a remote authenticated user to execute arbitrary commands within the Code Interpreter sandbox. The method constructs a 'pip install' shell command using package name arguments provided by the caller but employs an incomplete blocklist. This allows crafted arguments, specifically pip flags such as --index-url and -r, to bypass validation. An attacker could use this to redirect package resolution to a third-party-controlled PyPI server or expose environment variables and arbitrary sandbox files.Recommendations
Upgrade to version 1.6.1.
As a temporary workaround, avoid passing user-supplied or externally-influenced strings directly to the
install packages() method and restrict calls to a fixed, hardcoded list of approved package names.Fix
Argument Injection
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Bedrock Agentcore Python Sdk