Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. sagemaker
  4. ›
  5. GHSA-5r2p-pjr8-7fh7

GHSA-5r2p-pjr8-7fh7: SageMaker Python SDK replaced eval() with safe parser in JumpStart search functionality

March 5, 2026

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.

References

  • github.com/advisories/GHSA-5r2p-pjr8-7fh7
  • github.com/aws/sagemaker-python-sdk
  • github.com/aws/sagemaker-python-sdk/commit/e706e578519bd9b92ea44b9b15f872eca5e77ea4
  • github.com/aws/sagemaker-python-sdk/pull/5497
  • github.com/aws/sagemaker-python-sdk/security/advisories/GHSA-5r2p-pjr8-7fh7

Code Behaviors & Features

Detect and mitigate GHSA-5r2p-pjr8-7fh7 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 3.4.0

Fixed versions

  • 3.4.0

Solution

Upgrade to version 3.4.0 or above.

Impact 7.8 HIGH

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-184: Incomplete List of Disallowed Inputs

Source file

pypi/sagemaker/GHSA-5r2p-pjr8-7fh7.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 25 Mar 2026 00:17:29 +0000.