highVulnerability

GHSA-5r2p-pjr8-7fh7

## Summary This advisory addresses the use of the search_hub() function within the SageMaker Python SDK's JumpStart search functionality. An actor with the ability to control query parameters passed to the search_hub() function could potentially provide malformed input that causes the eval() function to execute arbitrary commands, access sensitive data, or compromise the execution environment. A defense-in-depth enhancement has been implemented to replace code evaluation with safe string operations when processing search query parameters. This enhancement removes the use of eval() from the execution path, replacing it with a safe recursive descent parser. The change was released in SageMaker Python SDK version 3.4.0 on January 23, 2026. This advisory is informational to help customers understand their responsibilities regarding input validation and configuration security under the [AWS Shared Responsibility Model](https://aws.amazon.com/compliance/shared-responsibility-model/). ## Impact Customer applications that pass unsanitized or untrusted input directly to the search_hub() function's query parameter could be prone to Remote Code Execution (RCE), potentially allowing attackers to execute arbitrary commands, access sensitive data, or compromise the execution environment. While the SDK was functioning within the requirements of the shared responsibility model—where input sanitization falls on the customer side—additional safeguards have been added to support secure customer implementations and provide defense-in-depth protection. **Impacted versions:** All versions of SageMaker Python SDK prior to 3.4.0 ## Patches On January 23, 2026, an enhancement was made to SageMaker Python SDK version 3.4.0, which replaces eval() with a safe recursive descent parser that uses string operations for pattern matching with proper operator precedence and exception handling. We recommend upgrading to version 3.4.0 or later, using the following command: ``` pip install --u

Properties

ghsa_id
GHSA-5r2p-pjr8-7fh7
severity
high
summary
SageMaker Python SDK replaced eval() with safe parser in JumpStart search functionality
cve_id
GHSA-5r2p-pjr8-7fh7
is_ghsa_only
true
ghsa_published
2026-03-05T22:01:09Z
source_url
https://github.com/advisories/GHSA-5r2p-pjr8-7fh7
ghsa_updated
2026-03-05T22:01:09Z

Related Entities (3)

AFFECTS (1)

[Software]pip/sagemaker

HAS_WEAKNESS (1)

[Weakness]Incomplete List of Disallowed Inputs

REPORTED_BY (1)

[Source]GitHub Advisory Database

Explore deeper with Ninja Signal's threat intelligence graph