AWS fixes SageMaker Python SDK bucket-ownership flaw CVE-2026-112408
AWS disclosed CVE-2026-112408, a vulnerability in the open-source SageMaker Python SDK's default_bucket() function. The SDK used a predictably named S3 bucket without verifying the caller's account owns it, allowing an attacker who pre-creates that bucket to execute code in a victim's SageMaker execution environment and steal IAM credentials. The issue is fixed in SDK versions 2.257.3 (V2) and 3.10.0 (V3).
AI · SECURITY · CLOUD · VULNERABILITY · SECURITY ADVISORY
PUBLISHED OCT 23, 2026 19:47 UTC
WHAT CHANGED
The default_bucket() function in the SageMaker Python SDK previously generated a predictable bucket name and used it without checking account ownership. Versions prior to 2.257.3 (V2 line) and V3 versions 3.0.0 up to but excluding 3.10.0 are affected. AWS has released patched versions 2.257.3 and 3.10.0 that add ownership verification. As a workaround, administrators who cannot upgrade immediately should explicitly pass an S3 bucket their account owns via the default_bucket parameter of sagemaker.Session or the SDK configuration file, rather than relying on the auto-generated bucket name.
WHY IT MATTERS
A remote attacker who pre-creates the predictably named bucket in their own account could hijack a victim's SageMaker execution environment, gaining code execution and access to the victim's IAM credentials. This could lead to broader AWS account compromise depending on the permissions attached to the SageMaker execution role. Administrators using the affected SDK versions should upgrade or apply the workaround to prevent credential theft and unauthorized access to their SageMaker environments and any resources reachable via the execution role's IAM credentials.
WHO IS AFFECTED
- PRODUCTS
- Amazon SageMaker Python SDK
- FEATURES
- default_bucket() function in sagemaker.Session
- CONFIGURATIONS
- SDK V2 versions < 2.257.3SDK V3 versions >= 3.0.0 and < 3.10.0
WHAT TO DO
- 01CRITICALAUTOMATABLE
Upgrade Amazon SageMaker Python SDK to version 2.257.3 (V2 branch) or 3.10.0 (V3 branch) or later.
- 02HIGHAUTOMATABLE
If immediate upgrade is not possible, explicitly configure an S3 bucket your account owns via the default_bucket parameter of sagemaker.Session or the SDK configuration file instead of relying on the auto-generated default bucket name.
- 03MEDIUM
Audit any forked or derivative copies of the SageMaker Python SDK code for the same default_bucket() logic and apply the equivalent fix.
TIMELINE
- ANNOUNCED
- OCT 21, 2026
SOURCES
- PRIMARY SOURCEAMAZON WEB SERVICES, INC.
CVE-2026-112408 - Missing bucket ownership verification in Amazon SageMaker Python SDK default_bucket()
PUBLISHED OCT 21, 2026VIEW SOURCE
VERIFICATION
ShiftWire summarizes and analyzes changes from the cited sources. Always review the primary source before implementing material changes.