8.4high
Improper neutralization of argument delimiters in AWS Bedrock AgentCore Python SDK install_packages()
- Severity
- 8.4high CVSS:4.0 by AMZN
- Exploit likelihood
- 0.34% (higher than 29% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- AMZN
- Also known as
- GHSA-6rfw-mq36-jm8hPYSEC-2026-2395
Description
Improper neutralization of argument delimiters in the install_packages() method in AWS Bedrock AgentCore Python SDK versions >= 1.1.3 and < 1.6.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 version 1.6.1.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| AWS bedrock-agentcore | from 1.1.3 before 1.6.1 | CVE List |
| bedrock-agentcore (PyPI) | from 1.1.3 before 1.6.1 | GitHub Advisory Database, PyPA Advisory Database |
All scores
| AMZN | 8.4high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N |
| AMZN | 7.3high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N |
| GitHub | 7.3high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N |
| GitHub | high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N |
| PyPA Advisory Database | 7.3high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N |
| PyPA Advisory Database | Not scored CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
Improper neutralization of argument delimiters in the install_packages() method in AWS Bedrock AgentCore Python SDK versions >= 1.1.3 and < 1.6.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 version 1.6.1.
GitHub Advisory Database
Summary
The AWS Bedrock AgentCore Python SDK (bedrock-agentcore) is an open-source SDK that enables developers to build, deploy, and manage agents on AWS Bedrock AgentCore. An issue exists in the install_packages() method of the Code Interpreter client where crafted package name arguments can bypass input validation and allow a remote authenticated user to execute arbitrary commands within the Code Interpreter sandbox.
Impact
The install_packages() method constructs a 'pip install' shell command executed within the Code Interpreter sandbox using package name arguments provided by the caller. The method applied an incomplete blocklist that allowed crafted package name arguments - specifically pip flags such as '--index-url' and '-r' - to pass validation unchecked. A remote authenticated user who can influence the arguments passed to install_packages() could redirect package resolution to a third-party-controlled PyPI server, or expose the contents of arbitrary sandbox files and environment variables.
Impacted versions: AWS Bedrock AgentCore Python SDK (bedrock-agentcore) versions >= 1.1.3 and < 1.6.1
Patches
This issue has been addressed in bedrock-agentcore version 1.6.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 unable to upgrade immediately, avoid passing any user-supplied or externally-influenced strings directly to install_packages(). Restrict calls to a fixed, hardcoded list of approved package names within your application code.
References
If you have any questions or comments about this advisory, we ask that you contact AWS Security via our vulnerability reporting page or directly via email to aws-security@amazon.com. Please do not create a public GitHub issue.
We would like to thank Sergio Garcia for collaborating on this issue through the coordinated vulnerability disclosure process.
NVD (es)
Neutralización incorrecta de delimitadores de argumentos en el método install_packages() en el SDK de Python de AWS Bedrock AgentCore versiones >= 1.1.3 y anterior a 1.6.1 podría permitir a un usuario remoto autenticado ejecutar comandos arbitrarios dentro de la sandbox del Intérprete de Código a través de argumentos de nombre de paquete manipulados. Para mitigar este problema, los usuarios deberían actualizar a la versión 1.6.1.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-12530 changed 2026-07-23 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-6rfw-mq36-jm8h changed 2026-07-13 | CC-BY-4.0 |
| NVD | CVE-2026-12530 changed 2026-10-24 | Public domain |
| PyPA Advisory Database | PYSEC-2026-2395 changed 2026-07-13 | CC-BY-4.0 |