{"id":"CVE-2026-16796","aliases":["GHSA-j6g5-3hh3-pgw8","PYSEC-2026-3551"],"url":"https://o3.security/vulnerability/CVE-2026-16796","summary":"Improper neutralization of argument delimiters in AWS Bedrock AgentCore Python SDK install_packages()","details":"### Summary\n\nThe 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 install_packages() method allows a remote authenticated user to execute arbitrary commands within the Code Interpreter sandbox via crafted package name arguments.\n\n### Impact\nInsufficient input validation in install_packages() 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 install_packages() can execute arbitrary commands within the Code Interpreter sandbox environment.\n\n### Impacted Versions\n< 1.18.1\n\n### Patches\nThis 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.\n\n### Workarounds\nIf you are not able to upgrade, do not pass untrusted or model-generated input to install_packages(). 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.\n\n### References\nIf you have any questions or comments about this advisory, AWS asks that you contact AWS Security via the [vulnerability reporting page](https://aws.amazon.com/security/vulnerability-reporting) or directly via email to [aws-security@amazon.com](mailto:aws-security@amazon.com). Please do not create a public GitHub issue.\n\n### Acknowledgement\n\nAWS would like to thank Sergio Garcia (@MrCloudSec) for collaborating on this issue through the coordinated issue disclosure process.","published":"2026-07-23T20:06:32.908Z","modified":"2026-10-21T02:56:14.551380774Z","cvss":null,"epss":{"score":0.00627,"percentile":0.48241,"asOf":"2026-09-15"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"PyPI","name":"bedrock-agentcore","fixedVersion":"1.18.1"}],"fix":{"url":"https://github.com/aws/bedrock-agentcore-sdk-python/pull/581","label":"aws/bedrock-agentcore-sdk-python#581"},"references":[{"type":"ADVISORY","url":"https://aws.amazon.com/security/security-bulletins/2026-065-aws/"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/16xxx/CVE-2026-16796.json"},{"type":"ADVISORY","url":"https://github.com/aws/bedrock-agentcore-sdk-python/security/advisories/GHSA-j6g5-3hh3-pgw8"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-16796"},{"type":"FIX","url":"https://pypi.org/project/bedrock-agentcore/1.18.1/"},{"type":"WEB","url":"https://github.com/aws/bedrock-agentcore-sdk-python/pull/581"},{"type":"WEB","url":"https://github.com/aws/bedrock-agentcore-sdk-python/commit/3c4b4ee6b8730e6313a82c743ac37dbcc1c21cdb"},{"type":"WEB","url":"https://aws.amazon.com/security/security-bulletins/2026-065-aws"},{"type":"PACKAGE","url":"https://github.com/aws/bedrock-agentcore-sdk-python"},{"type":"WEB","url":"https://pypi.org/project/bedrock-agentcore/1.18.1"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-10-21T02:56:14.551380774Z"}}