CVE-2026-16796: Improper neutralization of argument delimiters in AWS Bedrock AgentCore Python SDK install_packages()

Published Jul 23, 2026
·
Updated

Summary

The AWS Bedrock AgentCore Python SDK (bedrock-agentcore) provides tools for building AI agents, including a Code Interpreter client that installs Python packages into a managed sandbox. An issue exists where, under certain circumstances, improper neutralization of argument delimiters in the installpackages() method allows a remote authenticated user to execute arbitrary commands within the Code Interpreter sandbox via crafted package name arguments.

Impact Insufficient input validation in installpackages() allows specially crafted package specifiers to bypass validation and achieve arbitrary command execution within the sandbox. A remote authenticated user who can influence the arguments to installpackages() can execute arbitrary commands within the Code Interpreter sandbox environment.

Impacted Versions < 1.18.1

Patches This issue has been addressed in bedrock-agentcore version 1.18.1. We recommend upgrading to the latest version and ensuring any forked or derivative code is patched to incorporate the new fixes.

Workarounds If you are not able to upgrade, do not pass untrusted or model-generated input to installpackages(). Applications that must accept dynamic package names should validate them against strict PyPI naming rules -- including constraining any extras group to comma-separated identifiers -- before calling the SDK.

References If you have any questions or comments about this advisory, AWS asks that you contact AWS Security via the vulnerability reporting page or directly via email to aws-security@amazon.com. Please do not create a public GitHub issue.

Acknowledgement

AWS would like to thank Sergio Garcia (@MrCloudSec) for collaborating on this issue through the coordinated issue disclosure process.

Other sources

Improper neutralization of argument delimiters in the installpackages() method in AWS Bedrock AgentCore Python SDK before 1.18.1 might allow a remote authenticated user to execute arbitrary commands within the Code Interpreter sandbox via crafted package name arguments.

To mitigate this issue, users should upgrade to the patched version 1.18.1.

MITRE

Affected Software

2 affected componentsFixes available
Amazon Web Services AWS Bedrock AgentCore Python SDK<1.18.1
pip/bedrock-agentcore<1.18.1
1.18.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade pip/bedrock-agentcore to a version that resolves this vulnerability.

    Fixed in 1.18.1
  2. Upgrade

    Upgrade bedrock-agentcore to a version that resolves this vulnerability.

    Fixed in 1.18.1
  3. Configuration

    When calling install_packages(), validate any dynamic package/specifier inputs against strict PyPI naming rules—especially constrain any extras group to comma-separated identifiers—before passing them to the SDK.

    Code Interpreter client (bedrock-agentcore) install_packages() Input validation for package name arguments = Validate dynamic package names against strict PyPI naming rules, including constraining any extras group to comma-separated identifiers
  4. Compensating control

    If you cannot upgrade, do not pass untrusted or model-generated input to install_packages() (only supply trusted, non-user-controlled package arguments).

Event History

Jul 23, 2026
CVE Published
via MITRE·08:06 PM
Data Sourced
via MITRE·08:06 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·09:17 PM
DescriptionSeverityWeakness
Jul 24, 2026
Advisory Published
via GitHub·10:38 PM
Data Sourced
via GitHub·10:38 PM
DescriptionSeverityWeaknessAffected Software
Apr 29, 58532
Event
via NVD·01:50 PM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-16796?

The severity of CVE-2026-16796 is rated as high, with a score of 7.3.

2

How do I fix CVE-2026-16796?

To fix CVE-2026-16796, ensure that you upgrade to AWS Bedrock AgentCore Python SDK version 1.18.1 or later.

3

What vulnerabilities are associated with CVE-2026-16796?

CVE-2026-16796 allows remote authenticated users to execute arbitrary commands within the Code Interpreter sandbox.

4

Who is affected by CVE-2026-16796?

Users of AWS Bedrock AgentCore Python SDK versions before 1.18.1 are affected by CVE-2026-16796.

5

What type of vulnerability is CVE-2026-16796?

CVE-2026-16796 is classified as an improper neutralization of argument delimiters vulnerability.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203