Vulnerabilities in pkg:pypi/sagemaker

PACKAGE
Advisory Summary

GHSA-5r2p-pjr8-7fh7 is a HIGH sagemaker python sdk replaced eval() vulnerability (CWE-184: Incomplete List of Disallowed Inputs) affecting Sagemaker libraries in the PyPI ecosystem. The issue involves sagemaker python sdk replaced eval() with safe parser in jumpstart search functionality. Remediation is available by upgrading affected packages to version 3.4.0.

8 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:pypi/sagemaker

8 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:pypi/sagemaker. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-5r2p-pjr8-7fh7 - HIGH SageMaker Python SDK replaced eval() with safe parser in JumpStart search functionality
GHSA-rq6v-x3j8-7qgf CVE-2026-8597 MODERATE Amazon SageMaker Python SDK is missing integrity verification in its Triton inference handler
GHSA-7hh5-prp2-mfh5 CVE-2026-8596 HIGH Cleartext storage of HMAC signing key in Amazon SageMaker Python SDK ModelBuilder/Serve path
GHSA-rjrp-m2jw-pv9c CVE-2026-1777 HIGH SageMaker Python SDK has Exposed HMAC
GHSA-62rc-f4v9-h543 CVE-2026-1778 HIGH SageMaker Python SDK has Insecure TLS Configuration
GHSA-32g6-mg92-ghm2 CVE-2025-0508 MODERATE SageMaker Workflow component allows possibility of MD5 hash collisions
GHSA-7pc3-pr3q-58vg CVE-2024-34073 HIGH sagemaker-python-sdk Command Injection vulnerability
GHSA-wjvx-jhpj-r54r CVE-2024-34072 HIGH sagemaker-python-sdk vulnerable to Deserialization of Untrusted Data

GHSA-5r2p-pjr8-7fh7 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-5r2p-pjr8-7fh7
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-184: Incomplete List of Disallowed Inputs
Affected Product Sagemaker
Package Ecosystem PyPI
Published Date
Last Updated

How to Fix GHSA-5r2p-pjr8-7fh7

To remediate this vulnerability, upgrade all affected Sagemaker dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

sagemaker fixed: 3.4.0
pip install sagemaker>=3.4.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show sagemaker

How to Check if You Are Affected

To determine whether your Python environment is affected by GHSA-5r2p-pjr8-7fh7, inspect your installed packages using pip:

pip show sagemaker

Analyze the terminal output to locate any version of Sagemaker in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.4.0), your application is affected.

Note: The pip show sagemaker command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-184: Incomplete List of Disallowed Inputs, where the product implements a protection mechanism that relies on a list of inputs (or properties of inputs) that are not allowed by policy or otherwise require other action to neutralize before additional processing takes place, but the list is incomplete. In Sagemaker, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

## 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 --upgrade sagemaker>=3.4.0 ``` Customers using forked or derivative code should incorporate the fixes from the referenced pull request. ## Workarounds No workarounds are needed, but as always you should ensure that your application is following security best practices: - Sanitize and validate input to SDK methods to ensure only expected formats are processed - Update to the latest SageMaker Python SDK release on a regular basis - Follow AWS security best practices for SDK configuration and usage - Ensure proper access controls are in place for environments where the SDK is deployed ## References - Fixed in PR: https://github.com/aws/sagemaker-python-sdk/pull/5497 - Release: https://pypi.org/project/sagemaker/3.4.0/ - AWS Shared Responsibility Model: https://aws.amazon.com/compliance/shared-responsibility-model/ If you have any questions or comments about this advisory, contact AWS Security via our [vulnerability reporting page](https://aws.amazon.com/security/vulnerability-reporting/) or email [aws-security@amazon.com](mailto:aws-security@amazon.com). Please do not create a public GitHub issue. ## Acknowledgement We thank Dan Aridor (@daridor9) and the security research community for bringing these customer security considerations to our attention through the coordinated disclosure process and for collaborating on this issue through responsible disclosure practices.

GHSA-5r2p-pjr8-7fh7 Affected Sagemaker Versions

1 component(s)
Fixed Versions:
3.4.0
Product / Package Ecosystem Affected Versions Fixed Version
sagemaker
PyPI
≥ 3.0.0
< 3.4.0
3.4.0

References

Frequently Asked Questions

What is GHSA-5r2p-pjr8-7fh7?
GHSA-5r2p-pjr8-7fh7 is a security vulnerability in Sagemaker involving SageMaker Python SDK replaced eval() with safe parser in JumpStart search functionality under CWE-184: Incomplete List of Disallowed Inputs.
Which Sagemaker versions are affected?
Affected versions include releases prior to 3.4.0 across affected packages: sagemaker.
What version fixes GHSA-5r2p-pjr8-7fh7?
Upgrading to 3.4.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is sagemaker affected?
Yes, sagemaker is affected in releases prior to 3.4.0. Upgrade your dependency to 3.4.0 or later.
What CWE is associated with GHSA-5r2p-pjr8-7fh7?
GHSA-5r2p-pjr8-7fh7 is classified under CWE-184: Incomplete List of Disallowed Inputs (The product implements a protection mechanism that relies on a list of inputs (or properties of inputs) that are not allowed by policy or otherwise require other action to neutralize before additional processing takes place, but the list is incomplete.).
How can I check PyPI dependencies for GHSA-5r2p-pjr8-7fh7?
Run the dependency tree command: 'pip show sagemaker'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-5r2p-pjr8-7fh7",
  "modified" : "2026-10-02T20:12:16Z",
  "published" : "2026-03-05T22:01:09Z",
  "aliases" : [ ],
  "summary" : "SageMaker Python SDK replaced eval() with safe parser in JumpStart search functionality",
  "details" : "## Summary\n\nThis 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.\n\nA 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/).\n\n\n## Impact\n\nCustomer 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.\n\n**Impacted versions:** All versions of SageMaker Python SDK prior to 3.4.0\n\n\n## Patches\n\nOn 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:\n\n```\npip install --upgrade sagemaker>=3.4.0\n```\nCustomers using forked or derivative code should incorporate the fixes from the referenced pull request.\n\n## Workarounds\n\nNo workarounds are needed, but as always you should ensure that your application is following security best practices:\n- Sanitize and validate input to SDK methods to ensure only expected formats are processed\n- Update to the latest SageMaker Python SDK release on a regular basis\n- Follow AWS security best practices for SDK configuration and usage\n- Ensure proper access controls are in place for environments where the SDK is deployed\n\n\n## References\n\n- Fixed in PR: https://github.com/aws/sagemaker-python-sdk/pull/5497\n- Release: https://pypi.org/project/sagemaker/3.4.0/\n- AWS Shared Responsibility Model: https://aws.amazon.com/compliance/shared-responsibility-model/\n\nIf you have any questions or comments about this advisory, contact AWS Security via our [vulnerability reporting page](https://aws.amazon.com/security/vulnerability-reporting/) or email [aws-security@amazon.com](mailto:aws-security@amazon.com). Please do not create a public GitHub issue.\n\n\n## Acknowledgement\n\nWe thank Dan Aridor (@daridor9) and the security research community for bringing these customer security considerations to our attention through the coordinated disclosure process and for collaborating on this issue through responsible disclosure practices.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "sagemaker"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.0.0"
      }, {
        "fixed" : "3.4.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/aws/sagemaker-python-sdk/security/advisories/GHSA-5r2p-pjr8-7fh7"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/aws/sagemaker-python-sdk/pull/5497"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/aws/sagemaker-python-sdk/commit/3203e4996219799e7fcad214c7925ffd8594da1f"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/aws/sagemaker-python-sdk/commit/e706e578519bd9b92ea44b9b15f872eca5e77ea4"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/aws/sagemaker-python-sdk"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-184" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-03-05T22:01:09Z",
    "nvd_published_at" : null
  }
}