Skip to content
HighVulnerability

GHSA-j6g5-3hh3-pgw8: AWS Bedrock AgentCore: Improper neutralization of argument delimiters in the Python SDK install_packages()

Published
Record updated
View JSON
Affected
  • bedrock-agentcore < 1.18.1
Fixed in
1.18.1
  • released July 17, 2026, 7 days before disclosure
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.7%

Summary

The AWS Bedrock AgentCore Python SDK (bedrock-agentcore), before 1.18.1, has improper neutralization of argument delimiters in its install_packages() method. Under certain circumstances, a remote authenticated user can craft package name arguments that bypass input validation and execute arbitrary commands within the Code Interpreter sandbox.

Mitigation

Fixed in bedrock-agentcore 1.18.1. Upgrade to the latest version and patch any forked or derivative code. If upgrading is not possible, do not pass untrusted or model-generated input to install_packages(), and validate dynamic package names against strict PyPI naming rules, constraining any extras group to comma-separated identifiers, before calling the SDK.