BACK TO THE WIRE
SW-000253AMAZON WEB SERVICES · AMAZON SAGEMAKER · AMAZON SAGEMAKER PYTHON SDK · MODELBUILDER/SERVE COMPONENT (MODEL ARTIFACT INTEGRITY VERIFICATION)HIGHACTION REQUIRED

AWS patches two SageMaker Python SDK flaws allowing forged model artifact code execution

AWS disclosed two vulnerabilities (CVE-2026-8596 and CVE-2026-8597) in the Amazon SageMaker Python SDK's ModelBuilder/Serve component affecting versions v2.199.0-v2.257.1 and v3.0.0-v3.7.1. CVE-2026-8596 involves an HMAC signing key stored in plaintext as a container environment variable and exposed via SageMaker describe APIs, letting an authenticated actor with API access and S3 write permissions forge valid artifact signatures. CVE-2026-8597 is a missing integrity check in the Triton inference handler that deserializes model artifacts, including pickle payloads, without verification. Both flaws can lead to arbitrary code execution inside inference containers. Fixes are available in SDK v2.257.2 and v3.8.0.

AI · SECURITY · CLOUD · VULNERABILITY · SECURITY ADVISORY

PUBLISHED OCT 13, 2026 18:52 UTC

WHAT CHANGED

Amazon SageMaker Python SDK's ModelBuilder/Serve component stored an HMAC signing key (SAGEMAKER_SERVE_SECRET_KEY) in cleartext as a container environment variable, retrievable via DescribeModel, DescribeEndpointConfig, and DescribeModelPackage APIs (CVE-2026-8596). Separately, the Triton inference handler deserialized model artifacts without verifying their integrity, allowing a crafted pickle payload placed in the model artifact S3 path to execute on load (CVE-2026-8597). AWS fixed both issues in SDK v2.257.2 and v3.8.0. Models built with ModelBuilder under affected SDK versions may still retain the exposed HMAC key in their container environment until rebuilt with the patched SDK.

WHY IT MATTERS

A remote authenticated actor with permissions to call the affected describe APIs and with S3 write access to the model artifact path could extract the signing key, forge integrity signatures for malicious artifacts, or directly substitute a crafted pickle payload to achieve code execution inside SageMaker inference containers. This threatens the confidentiality and integrity of deployed ML models and any data or credentials accessible from the inference environment. Administrators using ModelBuilder-created models must upgrade the SDK and rebuild models, since merely upgrading the SDK does not remediate models already deployed with the exposed key.

WHO IS AFFECTED

ROLES
SageMaker Python SDK developersMLOps engineers using ModelBuilderAWS account administrators managing SageMaker models
PRODUCTS
Amazon SageMaker Python SDK
FEATURES
ModelBuilder/Serve componentTriton inference handlerModel artifact integrity verification (HMAC signing)
CONFIGURATIONS
Amazon SageMaker Python SDK >= v2.199.0 AND <= v2.257.1Amazon SageMaker Python SDK >= v3.0.0 AND <= v3.7.1
ENVIRONMENTS
AWS SageMaker inference containers

WHAT TO DO

  1. 01
    CRITICALAUTOMATABLE

    Upgrade Amazon SageMaker Python SDK to v2.257.2 or v3.8.0, which contain the fix for CVE-2026-8596 and CVE-2026-8597.

    DOCUMENTATION
  2. 02
    HIGH

    Rebuild any models previously created with ModelBuilder using the patched SDK version, since existing models may still contain the HMAC key in container environment variables.

    DOCUMENTATION
  3. 03
    MEDIUMAUTOMATABLE

    If immediate upgrade is not possible, recreate existing SageMaker models to remove the SAGEMAKER_SERVE_SECRET_KEY environment variable from the container environment configuration.

    DOCUMENTATION
  4. 04
    HIGHAUTOMATABLE

    Restrict S3 write access on model artifact paths to only trusted principals to prevent artifact tampering.

    DOCUMENTATION

TIMELINE

ANNOUNCED
MAY 14, 2026

SOURCES

  • PRIMARY SOURCEAWS

    CVE-2026-8596 and CVE-2026-8597: Issue with Amazon SageMaker Python SDK - Model artifact integrity verification issues

    PUBLISHED MAY 14, 2026VIEW SOURCE

VERIFICATION

HUMAN VERIFIEDLAST VERIFIED OCT 13, 2026 18:52 UTCREVISION 2

ShiftWire summarizes and analyzes changes from the cited sources. Always review the primary source before implementing material changes.

WAS THIS USEFUL?