CVE-2026-1777
JSON

8.5high

Cleartext transmission of sensitive materials in aws/sagemaker-python-sdk

Severity
8.5high CVSS:4.0 by AMZN
Exploit likelihood
0.66% (higher than 47% of CVEs)
Published
Last changed
Assigned by
AMZN
Also known as
GHSA-rjrp-m2jw-pv9cPYSEC-2026-1888

Description

The Amazon SageMaker Python SDK before v3.2.0 and v2.256.0 includes the ModelBuilder HMAC signing key in the cleartext response elements of the DescribeTrainingJob function. A third party with permissions to both call this API and permissions to modify objects in the Training Jobs S3 output location may have the ability to upload arbitrary artifacts which are executed the next time the Training Job is invoked.

Affected

Product or packageVersionsReported by
AWS SageMaker Python SDKNot specified
Not affected: 3.2.0, 2.256.0
CVE List
sagemaker (PyPI)from 3.0 before 3.2.0, before 2.256.0GitHub Advisory Database, PyPA Advisory Database

All scores

AMZN7.2high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
AMZN8.5high CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:N/VA:N/SC:H/SI:H/SA:H
GitHub7.2high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
GitHubhigh CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
PyPA Advisory Database7.2high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
PyPA Advisory DatabaseNot scored CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Classification

CWE-201CWE-295CWE-319

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

The Amazon SageMaker Python SDK before v3.2.0 and v2.256.0 includes the ModelBuilder HMAC signing key in the cleartext response elements of the DescribeTrainingJob function. A third party with permissions to both call this API and permissions to modify objects in the Training Jobs S3 output location may have the ability to upload arbitrary artifacts which are executed the next time the Training Job is invoked.

GitHub Advisory Database
Summary

SageMaker Python SDK is an open source library for training and deploying machine learning models on Amazon SageMaker. An issue where the HMAC secret key is stored in environment variables and disclosed via the DescribeTrainingJob API has been identified.

Impact
  • Function and Payload Tampering: Attackers with DescribeTrainingJob permissions may extract HMAC secret keys and forge serialized function payloads stored in S3. These tampered payloads would be processed and executed without triggering integrity validation errors, enabling unintended code substitution.
  • Arbitrary Code Execution in the Training Environment: An third party with both DescribeTrainingJob permissions and write access to the job's S3 output location can extract the HMAC key, craft inappropriate Python objects, and achieve remote code execution in the client's Python process when the victim retrieves remote function results.
  • Data and Credentials Handling: Arbitrary remote code execution may interact with sensitive data, model artifacts, environment variables, and potentially AWS metadata.
  • Cross-Tenant or Shared Environment Risks: In multi-tenant, shared S3 bucket, a disclosed HMAC key could act as a pivot point to perform inappropriate actions against other users' remote function workloads. This could leverage the IAM permissions, shared S3 buckets, or VPC resources to compromise adjacent services or data.
Impacted versions
  • SageMaker Python SDK v3 < v3.2.0
  • SageMaker Python SDK v2 < v2.256.0
Patches

This issue has been addressed in SageMaker Python SDK version v3.2.0 and v2.256.0. Upgrading to the latest version immediately and ensuring any forked or derivative code is patched to incorporate the new fixes is recommended.

Workarounds

Customers using self-signed certificates for internal model downloads should add their private Certificate Authority (CA) certificate to the container image rather than relying on the SDK’s previous insecure configuration. This opt-in approach maintains security while accommodating internal trusted domains.

Resources

If there are any questions or comments about this advisory, contact AWS Security via the vulnerability reporting page or directly via email to aws-security@amazon.com. Please do not create a public GitHub issue.

NVD (es)

El SDK de Python de Amazon SageMaker anterior a las versiones v3.2.0 y v2.256.0 incluye la clave de firma HMAC de ModelBuilder en los elementos de respuesta en texto claro de la función DescribeTrainingJob. Un tercero con permisos tanto para llamar a esta API como para modificar objetos en la ubicación de salida S3 de los trabajos de entrenamiento podría tener la capacidad de cargar artefactos arbitrarios que se ejecutan la próxima vez que se invoca el trabajo de entrenamiento.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-1777 changed 2026-02-04CVE Terms of Use
GitHub Advisory DatabaseGHSA-rjrp-m2jw-pv9c changed 2026-07-07CC-BY-4.0
NVDCVE-2026-1777 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2026-1888 changed 2026-07-07CC-BY-4.0