PYSEC-2026-1888

Vulnerability from pysec - Published: 2026-07-07 16:42 - Updated: 2026-07-07 17:25
VLAI
Details

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.

Impacted products
Name purl
sagemaker pkg:pypi/sagemaker

{
  "affected": [
    {
      "package": {
        "ecosystem": "PyPI",
        "name": "sagemaker",
        "purl": "pkg:pypi/sagemaker"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "2.256.0"
            },
            {
              "introduced": "3.0"
            },
            {
              "fixed": "3.2.0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "1.0.0",
        "1.0.1",
        "1.0.2",
        "1.1.0",
        "1.1.1",
        "1.1.2",
        "1.1.3",
        "1.10.0",
        "1.10.1",
        "1.11.0",
        "1.11.1",
        "1.11.2",
        "1.11.3",
        "1.12.0",
        "1.13.0",
        "1.14.0",
        "1.14.1",
        "1.14.2",
        "1.15.0",
        "1.15.1",
        "1.15.2",
        "1.16.1",
        "1.16.1.post1",
        "1.16.2",
        "1.16.3",
        "1.17.0",
        "1.17.1",
        "1.17.2",
        "1.18.0",
        "1.18.1",
        "1.18.10",
        "1.18.11",
        "1.18.12",
        "1.18.13",
        "1.18.14",
        "1.18.14.post0",
        "1.18.14.post1",
        "1.18.15",
        "1.18.16",
        "1.18.17",
        "1.18.18",
        "1.18.19",
        "1.18.2",
        "1.18.3",
        "1.18.3.post1",
        "1.18.4",
        "1.18.5",
        "1.18.6.post0",
        "1.18.7",
        "1.18.8",
        "1.18.9",
        "1.18.9.post0",
        "1.18.9.post1",
        "1.19.0",
        "1.19.1",
        "1.2.0",
        "1.2.1",
        "1.2.2",
        "1.2.3",
        "1.2.4",
        "1.2.5",
        "1.20.0",
        "1.20.1",
        "1.20.2",
        "1.20.3",
        "1.21.0",
        "1.21.1",
        "1.21.2",
        "1.22.0",
        "1.23.0",
        "1.24.0",
        "1.25.0",
        "1.25.1",
        "1.26.0",
        "1.27.0",
        "1.28.0",
        "1.28.1",
        "1.28.2",
        "1.28.3",
        "1.29.0",
        "1.3.0",
        "1.30.0",
        "1.31.0",
        "1.31.1",
        "1.32.0",
        "1.32.1",
        "1.32.2",
        "1.33.0",
        "1.34.0",
        "1.34.1",
        "1.34.2",
        "1.34.3",
        "1.35.0",
        "1.35.1",
        "1.36.0",
        "1.36.1",
        "1.36.2",
        "1.36.3",
        "1.36.4",
        "1.37.0",
        "1.37.1",
        "1.37.2",
        "1.38.0",
        "1.38.1",
        "1.38.2",
        "1.38.3",
        "1.38.4",
        "1.38.5",
        "1.38.6",
        "1.39.0",
        "1.39.1",
        "1.39.2",
        "1.39.3",
        "1.39.4",
        "1.4.0",
        "1.4.1",
        "1.4.2",
        "1.40.0",
        "1.40.1",
        "1.40.2",
        "1.41.0",
        "1.42.0",
        "1.42.1",
        "1.42.2",
        "1.42.3",
        "1.42.4",
        "1.42.5",
        "1.42.6",
        "1.42.6.post0",
        "1.42.7",
        "1.42.8",
        "1.42.9",
        "1.43.0",
        "1.43.1",
        "1.43.2",
        "1.43.3",
        "1.43.4",
        "1.43.4.post0",
        "1.43.4.post1",
        "1.43.5",
        "1.44.0",
        "1.44.1",
        "1.44.2",
        "1.44.3",
        "1.44.4",
        "1.45.0",
        "1.45.1",
        "1.45.2",
        "1.46.0",
        "1.47.1",
        "1.48.0",
        "1.48.1",
        "1.49.0",
        "1.5.0",
        "1.5.1",
        "1.5.2",
        "1.5.3",
        "1.5.4",
        "1.50.0",
        "1.50.1",
        "1.50.10",
        "1.50.10.post0",
        "1.50.11",
        "1.50.12",
        "1.50.13",
        "1.50.14",
        "1.50.14.post0",
        "1.50.15",
        "1.50.16",
        "1.50.17",
        "1.50.17.post0",
        "1.50.18",
        "1.50.18.post0",
        "1.50.2",
        "1.50.3",
        "1.50.4",
        "1.50.5",
        "1.50.6",
        "1.50.6.post0",
        "1.50.7",
        "1.50.8",
        "1.50.9",
        "1.50.9.post0",
        "1.51.0",
        "1.51.1",
        "1.51.2",
        "1.51.3",
        "1.51.4",
        "1.52.0",
        "1.52.0.post0",
        "1.52.1",
        "1.53.0",
        "1.54.0",
        "1.55.0",
        "1.55.0.post0",
        "1.55.1",
        "1.55.2",
        "1.55.3",
        "1.55.4",
        "1.56.0",
        "1.56.1",
        "1.56.1.post0",
        "1.56.1.post1",
        "1.56.2",
        "1.56.3",
        "1.57.0",
        "1.58.0",
        "1.58.1",
        "1.58.2",
        "1.58.2.post0",
        "1.58.3",
        "1.58.4",
        "1.59.0",
        "1.6.0",
        "1.6.1",
        "1.60.0",
        "1.60.0.post0",
        "1.60.1",
        "1.60.2",
        "1.61.0",
        "1.62.0",
        "1.63.0",
        "1.64.0",
        "1.64.1",
        "1.65.0",
        "1.65.1",
        "1.65.1.post0",
        "1.65.1.post1",
        "1.66.0",
        "1.67.0",
        "1.67.1",
        "1.67.1.post0",
        "1.68.0",
        "1.69.0",
        "1.7.0",
        "1.7.1",
        "1.7.2",
        "1.70.0",
        "1.70.1",
        "1.70.2",
        "1.71.0",
        "1.71.1",
        "1.72.0",
        "1.72.1",
        "1.8.0",
        "1.9.0",
        "1.9.1",
        "1.9.2",
        "1.9.3",
        "1.9.3.1",
        "2.0.0",
        "2.0.1",
        "2.1.0",
        "2.10.0",
        "2.100.0",
        "2.101.1",
        "2.102.0",
        "2.103.0",
        "2.104.0",
        "2.105.0",
        "2.106.0",
        "2.107.0",
        "2.108.0",
        "2.109.0",
        "2.11.0",
        "2.110.0",
        "2.111.0",
        "2.112.0",
        "2.112.1",
        "2.112.2",
        "2.113.0",
        "2.114.0",
        "2.115.0",
        "2.116.0",
        "2.117.0",
        "2.118.0",
        "2.119.0",
        "2.12.0",
        "2.120.0",
        "2.121.0",
        "2.121.1",
        "2.121.2",
        "2.122.0",
        "2.122.1.dev0",
        "2.123.0",
        "2.124.0",
        "2.125.0",
        "2.126.0",
        "2.127.0",
        "2.128.0",
        "2.129.0",
        "2.13.0",
        "2.130.0",
        "2.131.0",
        "2.131.1",
        "2.132.0",
        "2.133.0",
        "2.134.0",
        "2.134.1",
        "2.135.0",
        "2.135.1",
        "2.135.1.post0",
        "2.136.0",
        "2.137.0",
        "2.138.0",
        "2.139.0",
        "2.14.0",
        "2.140.0",
        "2.140.1",
        "2.141.0",
        "2.142.0",
        "2.143.0",
        "2.144.0",
        "2.145.0",
        "2.146.0",
        "2.146.1",
        "2.147.0",
        "2.148.0",
        "2.149.0",
        "2.15.0",
        "2.15.1",
        "2.15.2",
        "2.15.3",
        "2.15.4",
        "2.150.0",
        "2.151.0",
        "2.152.0",
        "2.153.0",
        "2.154.0",
        "2.155.0",
        "2.156.0",
        "2.157.0",
        "2.158.0",
        "2.159.0",
        "2.16.0",
        "2.16.0.post0",
        "2.16.1",
        "2.16.2",
        "2.16.3",
        "2.16.3.post0",
        "2.16.4",
        "2.160.0",
        "2.161.0",
        "2.162.0",
        "2.163.0",
        "2.164.0",
        "2.165.0",
        "2.166.0",
        "2.167.0",
        "2.168.0",
        "2.169.0",
        "2.17.0",
        "2.170.0",
        "2.171.0",
        "2.172.0",
        "2.173.0",
        "2.174.0",
        "2.175.0",
        "2.176.0",
        "2.177.0",
        "2.177.1",
        "2.178.0",
        "2.179.0",
        "2.18.0",
        "2.180.0",
        "2.181.0",
        "2.182.0",
        "2.183.0",
        "2.184.0",
        "2.184.0.post0",
        "2.185.0",
        "2.186.0",
        "2.187.0",
        "2.188.0",
        "2.189.0",
        "2.19.0",
        "2.190.0",
        "2.191.0",
        "2.192.0",
        "2.192.1",
        "2.193.0",
        "2.194.0",
        "2.195.0",
        "2.195.1",
        "2.196.0",
        "2.197.0",
        "2.197.1",
        "2.198.0",
        "2.198.1",
        "2.199.0",
        "2.2.0",
        "2.20.0",
        "2.200.0",
        "2.200.1",
        "2.201.0",
        "2.202.0",
        "2.202.1",
        "2.203.0",
        "2.203.1",
        "2.204.0",
        "2.205.0",
        "2.206.0",
        "2.207.0",
        "2.207.1",
        "2.208.0",
        "2.209.0",
        "2.21.0",
        "2.210.0",
        "2.211.0",
        "2.212.0",
        "2.213.0",
        "2.214.0",
        "2.214.1",
        "2.214.2",
        "2.214.3",
        "2.215.0",
        "2.216.0",
        "2.216.1",
        "2.217.0",
        "2.218.0",
        "2.218.1",
        "2.219.0",
        "2.22.0",
        "2.220.0",
        "2.221.0",
        "2.221.1",
        "2.222.0",
        "2.222.1",
        "2.223.0",
        "2.224.0",
        "2.224.1",
        "2.224.2",
        "2.224.3",
        "2.224.4",
        "2.225.0",
        "2.226.0",
        "2.226.1",
        "2.227.0",
        "2.228.0",
        "2.229.0",
        "2.23.0",
        "2.23.1",
        "2.23.2",
        "2.23.3",
        "2.23.4",
        "2.23.4.post0",
        "2.23.5",
        "2.23.6",
        "2.230.0",
        "2.231.0",
        "2.232.0",
        "2.232.1",
        "2.232.2",
        "2.232.3",
        "2.233.0",
        "2.234.0",
        "2.235.0",
        "2.235.1",
        "2.235.2",
        "2.236.0",
        "2.237.0",
        "2.237.1",
        "2.237.3",
        "2.238.0",
        "2.239.0",
        "2.239.1",
        "2.239.2",
        "2.239.3",
        "2.24.0",
        "2.24.1",
        "2.24.2",
        "2.24.3",
        "2.24.4",
        "2.24.5",
        "2.240.0",
        "2.241.0",
        "2.242.0",
        "2.243.0",
        "2.243.1",
        "2.243.2",
        "2.243.3",
        "2.243.4",
        "2.244.0",
        "2.244.1",
        "2.244.2",
        "2.245.0",
        "2.246.0",
        "2.247.0",
        "2.247.1",
        "2.248.0",
        "2.248.1",
        "2.248.2",
        "2.249.0",
        "2.25.0",
        "2.25.1",
        "2.25.2",
        "2.250.0",
        "2.251.0",
        "2.251.1",
        "2.251.2.dev0",
        "2.252.0",
        "2.253.0",
        "2.253.1",
        "2.254.0",
        "2.254.1",
        "2.254.2.dev0",
        "2.255.0",
        "2.26.0",
        "2.27.0",
        "2.27.1",
        "2.28.0",
        "2.29.0",
        "2.29.1",
        "2.29.2",
        "2.3.0",
        "2.30.0",
        "2.31.0",
        "2.31.1",
        "2.32.0",
        "2.32.1",
        "2.33.0",
        "2.34.0",
        "2.35.0",
        "2.36.0",
        "2.37.0",
        "2.38.0",
        "2.39.0",
        "2.39.0.post0",
        "2.39.1",
        "2.4.0",
        "2.4.1",
        "2.4.2",
        "2.40.0",
        "2.41.0",
        "2.42.0",
        "2.42.1",
        "2.43.0",
        "2.44.0",
        "2.45.0",
        "2.46.0",
        "2.46.1",
        "2.47.0",
        "2.47.1",
        "2.47.2",
        "2.47.2.post0",
        "2.48.0",
        "2.48.1",
        "2.48.2",
        "2.49.0",
        "2.49.1",
        "2.49.2",
        "2.5.0",
        "2.5.1",
        "2.5.2",
        "2.5.3",
        "2.5.4",
        "2.5.5",
        "2.50.0",
        "2.50.1",
        "2.51.0",
        "2.52.0",
        "2.52.1",
        "2.52.2",
        "2.52.2.post0",
        "2.53.0",
        "2.54.0",
        "2.54.1.dev0",
        "2.55.0",
        "2.56.0",
        "2.57.0",
        "2.58.0",
        "2.59.0",
        "2.59.1",
        "2.59.1.post0",
        "2.59.2",
        "2.59.3",
        "2.59.3.post0",
        "2.59.4",
        "2.59.5",
        "2.59.6",
        "2.59.7",
        "2.59.8",
        "2.6.0",
        "2.60.0",
        "2.61.0",
        "2.62.0",
        "2.63.0",
        "2.63.1",
        "2.63.2",
        "2.64.0",
        "2.65.0",
        "2.66.0",
        "2.66.1",
        "2.66.2",
        "2.66.2.post0",
        "2.67.0",
        "2.68.0",
        "2.69.0",
        "2.7.0",
        "2.70.0",
        "2.71.0",
        "2.72.0",
        "2.72.1",
        "2.72.2",
        "2.72.3",
        "2.73.0",
        "2.74.0",
        "2.75.0",
        "2.75.1",
        "2.76.0",
        "2.77.0",
        "2.77.1",
        "2.78.0",
        "2.79.0",
        "2.8.0",
        "2.80.0",
        "2.81.0",
        "2.81.1",
        "2.82.0",
        "2.82.1",
        "2.82.2",
        "2.83.0",
        "2.84.0",
        "2.85.0",
        "2.86.0",
        "2.86.1",
        "2.86.2",
        "2.87.0",
        "2.88.0",
        "2.88.1",
        "2.88.2",
        "2.88.3",
        "2.89.0",
        "2.9.0",
        "2.9.1",
        "2.9.2",
        "2.90.0",
        "2.91.0",
        "2.91.1",
        "2.92.0",
        "2.92.1",
        "2.92.2",
        "2.93.0",
        "2.93.1",
        "2.94.0",
        "2.95.0",
        "2.96.0",
        "2.97.0",
        "2.98.0",
        "2.99.0",
        "3.0",
        "3.0.1",
        "3.1.0",
        "3.1.1"
      ]
    }
  ],
  "aliases": [
    "CVE-2026-1777",
    "GHSA-rjrp-m2jw-pv9c"
  ],
  "details": "### Summary\n\nSageMaker 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.\n\n### Impact\n\n- 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.\n- Arbitrary Code Execution in the Training Environment: An third party with both DescribeTrainingJob permissions and write access to the job\u0027s S3 output location can extract the HMAC key, craft inappropriate Python objects, and achieve remote code execution in the client\u0027s Python process when the victim retrieves remote function results.\n- Data and Credentials Handling: Arbitrary remote code execution may interact with sensitive data, model artifacts, environment variables, and potentially AWS metadata.\n- 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\u0027 remote function workloads. This could leverage the IAM permissions, shared S3 buckets, or VPC resources to compromise adjacent services or data.\n\n### Impacted versions\n\n- SageMaker Python SDK v3 \u003c v3.2.0\n- SageMaker Python SDK v2 \u003c v2.256.0\n\n### Patches\nThis issue has been addressed in SageMaker Python SDK version [v3.2.0](https://github.com/aws/sagemaker-python-sdk/tree/22d30f577a6139431a1fb9154b7b88a0e2a1ace6) and [v2.256.0](https://github.com/aws/sagemaker-python-sdk/tree/a140cfcd12abfee10254cb4dea3bb10758e4321c). Upgrading to the latest version immediately and ensuring any forked or derivative code is patched to incorporate the new fixes is recommended.\n\n### Workarounds\nCustomers 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\u2019s previous insecure configuration. This opt-in approach maintains security while accommodating internal trusted domains.\n\n### Resources\nIf there are any questions or comments about this advisory, contact AWS Security via the [vulnerability reporting page](https://aws.amazon.com/security/vulnerability-reporting) or directly via email to [aws-security@amazon.com](mailto:aws-security@amazon.com). Please do not create a public GitHub issue.",
  "id": "PYSEC-2026-1888",
  "modified": "2026-07-07T17:25:19.561157Z",
  "published": "2026-07-07T16:42:05.574892Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/aws/sagemaker-python-sdk/security/advisories/GHSA-rjrp-m2jw-pv9c"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-1777"
    },
    {
      "type": "WEB",
      "url": "https://github.com/aws/sagemaker-python-sdk/commit/708c7b2f4135ecaec55973d098f3dbe98b657933"
    },
    {
      "type": "WEB",
      "url": "https://github.com/aws/sagemaker-python-sdk/commit/fb0d789db4fd5fecde5509963939369f4c7ce63b"
    },
    {
      "type": "WEB",
      "url": "https://aws.amazon.com/security/security-bulletins/2026-004-AWS"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/aws/sagemaker-python-sdk"
    },
    {
      "type": "WEB",
      "url": "https://github.com/aws/sagemaker-python-sdk/releases/tag/v2.256.0"
    },
    {
      "type": "WEB",
      "url": "https://github.com/aws/sagemaker-python-sdk/releases/tag/v3.2.0"
    },
    {
      "type": "PACKAGE",
      "url": "https://pypi.org/project/sagemaker"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/advisories/GHSA-rjrp-m2jw-pv9c"
    }
  ],
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    },
    {
      "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "SageMaker Python SDK has Exposed HMAC"
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline

Sightings and recorded dates, grouped by day · UTC

JSON
How durations are calculated

Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation. The method is described in a publication.

Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.

Events included in the timeline

Loading timeline…


    Loading…

    Loading…

    Loading…

    Related by attack behaviour

    Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.