CVE-2026-8597: Amazon SageMaker Python SDK code execution in Triton inference handler

CVE-2026-8597 · Severity: high · CVSS 7.2 · Published 2026-05-14

The Amazon SageMaker Python SDK is a library used to build, train, and deploy machine learning models. A security flaw in its Triton inference handler allows an attacker with specific storage permissions to execute malicious code within the model's environment. This could lead to a full compromise of the SageMaker execution role, potentially exposing sensitive data or allowing unauthorized access to other AWS resources.

Technologies: Amazon SageMaker Python SDK, sagemaker (PyPI). Vendors: Amazon, PyPI.

Quick answers

Is CVE-2026-8597 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-8597 being exploited in the wild.
How severe is CVE-2026-8597?
High severity, with a CVSS score of 7.2, published 14 May 2026.
Which products and versions are affected?
Amazon SageMaker Python SDK >= v2.199.0, <= v2.257.1; >= v3.0.0, <= v3.7.1; sagemaker (PyPI) ECOSYSTEM:introduced=2.199.0,fixed=2.257.2, ECOSYSTEM:introduced=2.199.0,fixed=2.257.2,introduced=3.0.0,fixed=3.8.0.
Is there a fix for CVE-2026-8597?
Yes. sagemaker (PyPI): upgrade to 2.257.2, 3.8.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2026-8597 attacked?
It is attacked over the network, in a software library.
Am I affected by CVE-2026-8597?
Check whether you run Amazon SageMaker Python SDK or sagemaker (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • sagemaker (PyPI): upgrade to 2.257.2, 3.8.0 or later
    pip install "sagemaker>=3.8.0"

Technical details

A vulnerability exists in the Amazon SageMaker Python SDK's Triton inference handler due to the deserialization of untrusted model artifacts without integrity verification (CWE-354). When using ModelBuilder with a Triton inference server, the handler fails to validate model files before processing them. An attacker with S3 write access to the model artifact path can replace legitimate files with a malicious pickle payload. This payload is automatically deserialized during container lifecycle events, resulting in arbitrary code execution with the permissions of the SageMaker execution IAM role. The issue is fixed in versions 2.257.2 and 3.8.0.

Affected products

  • Amazon SageMaker Python SDK >= 2.199.0, <= 2.257.1; >= 3.0.0, <= 3.7.1

Identifiers

  • CVE-2026-8597
  • GHSA-rq6v-x3j8-7qgf
  • PYSEC-2026-3060

Timeline

  • 2026-05-14: disclosed
  • 2026-05-14: patched: Versions 2.257.2 and 3.8.0 released
  • 2026-05-21: advisory

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.