GHSA-635v-pc42-fr74: Sagemaker training AWS SageMaker Training Toolkit Logs Vulnerability

MODERATE
CVSS 4.2
CWE-532
Published
Advisory Summary

GHSA-635v-pc42-fr74 is a MODERATE (CVSS 4.2) aws sagemaker training toolkit logs vulnerability (CWE-532: Insertion of Sensitive Information into Log File) affecting Sagemaker training libraries in the PyPI ecosystem. The issue involves aws sagemaker training toolkit logs codeartifact authorization token. Remediation is available by upgrading affected packages to version 4.8.0.

GHSA-635v-pc42-fr74 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-635v-pc42-fr74
Severity MODERATE
CVSS v3.1 Base Score 4.2
CWE Classification CWE-532: Insertion of Sensitive Information into Log File
Affected Product Sagemaker training
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 4.2

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:H/I:N/A:N).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required High (PR:H)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity None (I:N)
Availability None (A:N)

How to Fix GHSA-635v-pc42-fr74

To remediate this vulnerability, upgrade all affected Sagemaker training dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

sagemaker-training fixed: 4.8.0
pip install sagemaker-training>=4.8.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show sagemaker-training

How to Check if You Are Affected

To determine whether your Python environment is affected by GHSA-635v-pc42-fr74, inspect your installed packages using pip:

pip show sagemaker-training

Analyze the terminal output to locate any version of Sagemaker training in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.8.0), your application is affected.

Note: The pip show sagemaker-training command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-532: Insertion of Sensitive Information into Log File, where the product writes sensitive information to a log file. In Sagemaker training, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

## Description For SageMaker Training Toolkit[1] versions 4.7.4; 4.7.3; 4.7.2; 4.7.1; 4.7.0, the authorization tokens for CodeArtifact (temporary token with an expiration of 12 hours) were logged in the log files when the CodeArtifact capability was enabled. If customers push these log files to their CloudWatch Log streams, anyone having access to cloudwatch logs within their AWS account, may be abe to see the authorization token. If the token is not expired, they may use the authorization token to publish or consume CodeArtifact package versions. This issue was addressed in version 4.8.0. We recommend users upgrade to version 4.8.0 or higher. Please note that users can add SageMaker Training Toolkit to any Docker container[2] used for SageMaker training[3]. It also comes pre-packaged with the prebuilt SageMaker Docker image[4] for SageMaker training. ## Patches This issue has been addressed in version 4.8.0 and higher. ## Workarounds N/A ## References N/A If you have any questions or comments about this advisory we ask that you contact AWS/Amazon Security via our vulnerability reporting page[5] or directly via email to [aws-security@amazon.com](mailto:aws-security@amazon.com). Please do not create a public GitHub issue. [1] https://github.com/aws/sagemaker-training-toolkit [2] https://www.docker.com/resources/what-container/ [3] https://aws.amazon.com/sagemaker/train/ [4] https://docs.aws.amazon.com/sagemaker/latest/dg/pre-built-containers-frameworks-deep-learning.html [5] Vulnerability reporting page: https://aws.amazon.com/security/vulnerability-reporting

GHSA-635v-pc42-fr74 Affected Sagemaker training Versions

1 component(s)
Fixed Versions:
4.8.0
Product / Package Ecosystem Affected Versions Fixed Version
sagemaker-training
PyPI
≥ 4.7.0
< 4.8.0
4.8.0

References

Frequently Asked Questions

What is GHSA-635v-pc42-fr74?
GHSA-635v-pc42-fr74 is a security vulnerability in Sagemaker training involving AWS SageMaker Training Toolkit logs CodeArtifact Authorization token under CWE-532: Insertion of Sensitive Information into Log File.
Which Sagemaker training versions are affected?
Affected versions include releases prior to 4.8.0 across affected packages: sagemaker-training.
What version fixes GHSA-635v-pc42-fr74?
Upgrading to 4.8.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is sagemaker-training affected?
Yes, sagemaker-training is affected in releases prior to 4.8.0. Upgrade your dependency to 4.8.0 or later.
What is the CVSS score of GHSA-635v-pc42-fr74?
GHSA-635v-pc42-fr74 has a CVSS v3.1 base score of 4.2 (MODERATE) with vector string CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:H/I:N/A:N.
What CWE is associated with GHSA-635v-pc42-fr74?
GHSA-635v-pc42-fr74 is classified under CWE-532: Insertion of Sensitive Information into Log File (The product writes sensitive information to a log file.).
How can I check PyPI dependencies for GHSA-635v-pc42-fr74?
Run the dependency tree command: 'pip show sagemaker-training'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-635v-pc42-fr74",
  "modified" : "2024-09-11T19:20:42Z",
  "published" : "2024-09-11T19:20:42Z",
  "aliases" : [ ],
  "summary" : "AWS SageMaker Training Toolkit logs CodeArtifact Authorization token",
  "details" : "## Description\nFor SageMaker Training Toolkit[1] versions 4.7.4; 4.7.3; 4.7.2; 4.7.1; 4.7.0, the authorization tokens for CodeArtifact (temporary token with an expiration of 12 hours) were logged in the log files when the CodeArtifact capability was enabled. If customers push these log files to their CloudWatch Log streams, anyone having access to cloudwatch logs within their AWS account, may be abe to see the authorization token. If the token is not expired, they may use the authorization token to publish or consume CodeArtifact package versions.\n\nThis issue was addressed in version 4.8.0. We recommend users upgrade to version 4.8.0 or higher.  \n\nPlease note that users can add SageMaker Training Toolkit to any Docker container[2] used for SageMaker training[3]. It also comes pre-packaged with the prebuilt SageMaker Docker image[4] for SageMaker training. \n\n## Patches\nThis issue has been addressed in version 4.8.0 and higher.\n\n## Workarounds\nN/A\n\n## References\nN/A\n\nIf you have any questions or comments about this advisory we ask that you contact AWS/Amazon Security via our vulnerability reporting page[5] or directly via email to [aws-security@amazon.com](mailto:aws-security@amazon.com). Please do not create a public GitHub issue.\n\n[1] https://github.com/aws/sagemaker-training-toolkit\n[2] https://www.docker.com/resources/what-container/\n[3] https://aws.amazon.com/sagemaker/train/\n[4] https://docs.aws.amazon.com/sagemaker/latest/dg/pre-built-containers-frameworks-deep-learning.html\n[5] Vulnerability reporting page: https://aws.amazon.com/security/vulnerability-reporting",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:H/I:N/A:N"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:A/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "sagemaker-training"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.7.0"
      }, {
        "fixed" : "4.8.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/aws/sagemaker-training-toolkit/security/advisories/GHSA-635v-pc42-fr74"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/aws/sagemaker-training-toolkit/commit/d8e56c90fa7fcc7421c0f7193bf9650fc2967213"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/aws/sagemaker-training-toolkit"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-532" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-09-11T19:20:42Z",
    "nvd_published_at" : null
  }
}