GHSA-635v-pc42-fr74: Sagemaker training AWS SageMaker Training Toolkit Logs Vulnerability
MODERATEGHSA-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
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).
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.
pip install sagemaker-training>=4.8.0
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
GHSA-635v-pc42-fr74 Affected Sagemaker training Versions
1 component(s)| 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?
Which Sagemaker training versions are affected?
What version fixes GHSA-635v-pc42-fr74?
Is sagemaker-training affected?
What is the CVSS score of GHSA-635v-pc42-fr74?
What CWE is associated with GHSA-635v-pc42-fr74?
How can I check PyPI dependencies for GHSA-635v-pc42-fr74?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}