CVE-2025-0508: Sagemaker SageMaker Workflow Component Allows Possibility Vulnerability

MODERATE
Advisory Identifier: GHSA-32g6-mg92-ghm2
CVSS 5.9
CWE-440 CWE-328
Published
Advisory Summary

CVE-2025-0508 is a MODERATE (CVSS 5.9) sagemaker workflow component allows possibility vulnerability (CWE-440: Expected Behavior Violation) affecting Sagemaker libraries in the PyPI ecosystem. The issue involves sagemaker workflow component allows possibility of md5 hash collisions. Remediation is available by upgrading affected packages to version 2.237.3.

CVE-2025-0508 at a Glance

CVE Identifier CVE-2025-0508
GHSA Identifier GHSA-32g6-mg92-ghm2
Severity MODERATE
CVSS v3.1 Base Score 5.9
CWE Classification CWE-440: Expected Behavior Violation
Affected Product Sagemaker
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 5.9

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity High (I:H)
Availability None (A:N)

How to Fix CVE-2025-0508

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: 2.237.3
pip install sagemaker>=2.237.3
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 CVE-2025-0508, 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 2.237.3), 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-440: Expected Behavior Violation, where a feature, api, or function does not perform according to its specification. 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

A vulnerability in the SageMaker Workflow component of aws/sagemaker-python-sdk allows for the possibility of MD5 hash collisions in all versions. This can lead to workflows being inadvertently replaced due to the reuse of results from different configurations that produce the same MD5 hash. This issue can cause integrity problems within the pipeline, potentially leading to erroneous processing outcomes.

CVE-2025-0508 Affected Sagemaker Versions

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

References

Frequently Asked Questions

What is CVE-2025-0508?
CVE-2025-0508 is a security vulnerability in Sagemaker involving SageMaker Workflow component allows possibility of MD5 hash collisions under CWE-440: Expected Behavior Violation.
Which Sagemaker versions are affected?
Affected versions include releases prior to 2.237.3 across affected packages: sagemaker.
What version fixes CVE-2025-0508?
Upgrading to 2.237.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is sagemaker affected?
Yes, sagemaker is affected in releases prior to 2.237.3. Upgrade your dependency to 2.237.3 or later.
What is the CVSS score of CVE-2025-0508?
CVE-2025-0508 has a CVSS v3.1 base score of 5.9 (MODERATE) with vector string CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N.
What CWE is associated with CVE-2025-0508?
CVE-2025-0508 is classified under CWE-440: Expected Behavior Violation (A feature, API, or function does not perform according to its specification.).
How can I check PyPI dependencies for CVE-2025-0508?
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-32g6-mg92-ghm2",
  "modified" : "2025-03-21T23:57:42Z",
  "published" : "2025-03-20T12:32:52Z",
  "aliases" : [ "CVE-2025-0508" ],
  "summary" : "SageMaker Workflow component allows possibility of MD5 hash collisions",
  "details" : "A vulnerability in the SageMaker Workflow component of aws/sagemaker-python-sdk allows for the possibility of MD5 hash collisions in all versions. This can lead to workflows being inadvertently replaced due to the reuse of results from different configurations that produce the same MD5 hash. This issue can cause integrity problems within the pipeline, potentially leading to erroneous processing outcomes.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "sagemaker"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.237.3"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-0508"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/aws/sagemaker-python-sdk/commit/dcdd99f911e8b1a05d19cf1ad939b0fefae47864"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/aws/sagemaker-python-sdk"
  }, {
    "type" : "WEB",
    "url" : "https://huntr.com/bounties/eb056818-5b81-466f-81ee-916058d34af2"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-328", "CWE-440" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-03-21T23:57:42Z",
    "nvd_published_at" : "2025-03-20T10:15:53Z"
  }
}