GHSA-6rfw-mq36-jm8h

Suggest an improvement
Source
https://github.com/advisories/GHSA-6rfw-mq36-jm8h
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/06/GHSA-6rfw-mq36-jm8h/GHSA-6rfw-mq36-jm8h.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-6rfw-mq36-jm8h
Aliases
  • CVE-2026-12530
Published
2026-06-19T14:46:33Z
Modified
2026-06-19T15:00:15.259217224Z
Severity
  • 7.3 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N CVSS Calculator
  • 8.4 (High) CVSS_V4 - 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 CVSS Calculator
Summary
Improper neutralization of argument delimiters in AWS Bedrock AgentCore Python SDK install_packages()
Details

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 installpackages() 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 installpackages() 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.

Database specific
{
    "nvd_published_at": "2026-06-17T22:16:20Z",
    "github_reviewed_at": "2026-06-19T14:46:33Z",
    "github_reviewed": true,
    "severity": "HIGH",
    "cwe_ids": [
        "CWE-88"
    ]
}
References

Affected packages

PyPI / bedrock-agentcore

Package

Name
bedrock-agentcore
View open source insights on deps.dev
Purl
pkg:pypi/bedrock-agentcore

Affected ranges

Type
ECOSYSTEM
Events
Introduced
1.1.3
Fixed
1.6.1

Affected versions

1.*
1.1.3
1.1.4
1.1.5
1.2.0
1.2.1
1.3.0
1.3.1
1.3.2
1.3.3
1.4.0
1.4.1
1.4.2
1.4.3
1.4.4
1.4.5
1.4.6
1.4.7
1.4.8
1.5.0
1.5.1
1.6.0

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/06/GHSA-6rfw-mq36-jm8h/GHSA-6rfw-mq36-jm8h.json"