CVE-2026-8597: Sagemaker Amazon SageMaker Python SDK Is Vulnerability
MODERATECVE-2026-8597 is a MODERATE (CVSS 7.2) amazon sagemaker python sdk is vulnerability (CWE-354: Improper Validation of Integrity Check Value) affecting Sagemaker libraries in the PyPI ecosystem. The issue involves amazon sagemaker python sdk is missing integrity verification in its triton inference handler. Remediation is available by upgrading affected packages to version 2.257.2, 3.8.0.
CVE-2026-8597 at a Glance
Security Impact
CVSS: 7.2
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H).
How to Fix CVE-2026-8597
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.
pip install sagemaker>=2.257.2
pip install sagemaker>=3.8.0
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-2026-8597, 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.257.2), 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-354: Improper Validation of Integrity Check Value, where the product does not validate or incorrectly validates the integrity check values or "checksums" of a message. this may prevent it from detecting if the data has been modified or corrupted in transmission. 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
CVE-2026-8597 Affected Sagemaker Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
sagemaker
|
PyPI |
≥ 2.199.0
< 2.257.2
|
2.257.2
|
|
sagemaker
|
PyPI |
≥ 3.0.0
< 3.8.0
|
3.8.0
|
References
Frequently Asked Questions
What is CVE-2026-8597?
Which Sagemaker versions are affected?
What version fixes CVE-2026-8597?
Is sagemaker affected?
What is the CVSS score of CVE-2026-8597?
What CWE is associated with CVE-2026-8597?
How can I check PyPI dependencies for CVE-2026-8597?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-rq6v-x3j8-7qgf",
"modified" : "2026-05-21T17:56:39Z",
"published" : "2026-05-21T17:56:39Z",
"aliases" : [ "CVE-2026-8597" ],
"summary" : "Amazon SageMaker Python SDK is missing integrity verification in its Triton inference handler",
"details" : "## Summary\nAmazon SageMaker Python SDK is an open-source library for training and deploying machine learning models on Amazon SageMaker. An issue exists where, under certain circumstances, the Triton inference handler deserializes model artifacts without performing integrity verification, allowing specially crafted pickle payloads to execute arbitrary code.\n\n## Impact\nWhen using ModelBuilder with the Triton inference server, the Triton handler did not perform integrity verification before deserializing model artifacts. A remote authenticated actor with S3 write access to the model artifact path could replace model files with a crafted payload that would execute automatically on the next container lifecycle event, achieving code execution with the SageMaker execution role's IAM permissions.\n\n\n**Impacted versions:** >= v2.199.0 AND <= v2.257.1, >= v3.0.0 AND <= v3.7.1\n\n## Patches\nThis issue has been addressed in Amazon SageMaker Python SDK v2.257.2 and v3.8.0. The Triton inference handler now performs integrity verification before deserializing model artifacts. AWS recommend upgrading to the latest version and rebuilding any Triton models previously created with ModelBuilder using the updated SDK. Ensure any forked or derivative code is patched to incorporate the new fixes.\n\n## Workarounds\nIf upgrading is not immediately possible, users should restrict S3 write access to model artifact paths to only trusted principals and monitor for unintended modifications to files in model artifact S3 locations.\n\n## References\nIf there any questions or comments about this advisory, contact AWS Security via [vulnerability reporting page](https://aws.amazon.com/security/vulnerability-reporting) or directly via email to [aws-security@amazon.com](mailto:aws-security@amazon.com). Please do not create a public GitHub issue.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "sagemaker"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.199.0"
}, {
"fixed" : "2.257.2"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 2.257.1"
}
}, {
"package" : {
"ecosystem" : "PyPI",
"name" : "sagemaker"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.0.0"
}, {
"fixed" : "3.8.0"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 3.7.1"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/aws/sagemaker-python-sdk/security/advisories/GHSA-rq6v-x3j8-7qgf"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-8597"
}, {
"type" : "WEB",
"url" : "https://aws.amazon.com/security/security-bulletins/2026-031-aws"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/aws/sagemaker-python-sdk"
}, {
"type" : "WEB",
"url" : "https://github.com/aws/sagemaker-python-sdk/releases/tag/v2.257.2"
}, {
"type" : "WEB",
"url" : "https://github.com/aws/sagemaker-python-sdk/releases/tag/v3.8.0"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-354" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-05-21T17:56:39Z",
"nvd_published_at" : "2026-05-14T20:17:21Z"
}
}