Skip to content
HighVulnerability

GHSA-6rfw-mq36-jm8h: Improper neutralization of argument delimiters in AWS Bedrock AgentCore Python SDK install_packages()

Published
Record updated
View JSON
Affected
  • bedrock-agentcore >= 1.1.3, < 1.6.1
Fixed in
1.6.1
  • released April 10, 2026, 70 days before disclosure

Summary

The install_packages() method of the Code Interpreter client in the AWS Bedrock AgentCore Python SDK (bedrock-agentcore), versions >= 1.1.3 and < 1.6.1, builds a 'pip install' command from caller-supplied package names. An incomplete blocklist lets pip flags such as '--index-url' and '-r' pass validation, so a remote authenticated user who can influence those arguments can redirect package resolution to a third-party PyPI server or read arbitrary sandbox files and environment variables.

Mitigation

Fixed in bedrock-agentcore 1.6.1. Upgrade, and patch any forked or derivative code. If upgrading is not possible, avoid passing user-supplied or externally influenced strings to install_packages() and restrict calls to a fixed, hardcoded list of approved package names.