CVE-2026-1777: SageMaker Python SDK Exposed HMAC Vulnerability

sagemaker Updated 07 Jul 2026

Summary

07/07/2026
Yes i
High
7.2

CVE-2026-1777: SageMaker Python SDK has Exposed HMAC. Affects sagemaker across 2 version ranges.

< 2.256.0 >= 3.0, < 3.2.0

Fixed in 2.256.0 or 3.2.0, depending on the release line you run. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

The SageMaker Python SDK is an open-source library designed for training and deploying machine learning models on Amazon SageMaker. It provides a user-friendly interface for developers to interact with SageMaker services, enabling seamless integration of machine learning workflows. However, a critical vulnerability has been identified that compromises the security of HMAC secret keys used within the SDK.

Vulnerability Detail

The vulnerability arises from the improper handling of HMAC secret keys, which are stored in environment variables and can be disclosed via the DescribeTrainingJob API. This exposure allows attackers with the appropriate permissions to extract HMAC keys, leading to potential function and payload tampering, arbitrary code execution in the training environment, and risks to sensitive data and credentials. The implications extend to cross-tenant risks in shared environments, where a compromised HMAC key could be used to perform unauthorized actions against other users' workloads.

How To Fix

Latest published version: 3.27.0 as of 22 Oct 2026

pip install --upgrade "sagemaker==3.27.0"

Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.

If you can't move to the latest

The minimum fixed version depends on the release line you run.

  • < 2.256.0 2.256.0
    pip install --upgrade "sagemaker==2.256.0"
  • >= 3.0, < 3.2.0 3.2.0
    pip install --upgrade "sagemaker==3.2.0"

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Workaround

As a temporary workaround, customers using self-signed certificates for internal model downloads should add their private Certificate Authority (CA) certificate to the container image instead of relying on the SDK's previous insecure configuration. This approach enhances security while accommodating internal trusted domains.

Conclusion

The SageMaker Python SDK vulnerability (CVE-2026-1777) poses significant risks due to the exposure of HMAC secret keys. Users are strongly advised to upgrade to the latest patched versions and implement the recommended workarounds to mitigate potential threats.

See every vulnerability recorded for sagemaker →

Share this vulnerability

FAQ

The vulnerability involves the exposure of HMAC secret keys, which can be accessed through the DescribeTrainingJob API, leading to potential unauthorized actions and code execution.

Users of the SageMaker Python SDK versions prior to v2.256.0 and v3.2.0 are affected by this vulnerability.

Consequences include function and payload tampering, arbitrary code execution, and risks to sensitive data and credentials, especially in shared environments.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

The CVSS score of this vulnerability is 7.2, indicating a high severity level.

Related vulnerabilities

Recent vulnerabilities recorded for sagemaker.

How To Fix

Latest published version: 3.27.0 as of 22 Oct 2026

pip install --upgrade "sagemaker==3.27.0"

Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.

If you can't move to the latest

The minimum fixed version depends on the release line you run.

  • < 2.256.0 2.256.0
    pip install --upgrade "sagemaker==2.256.0"
  • >= 3.0, < 3.2.0 3.2.0
    pip install --upgrade "sagemaker==3.2.0"

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback