{"answers":{"affected":"2 open source packages ship an affected version, including sagemaker-training.","exploited":"There is no known exploitation of GHSA-635v-pc42-fr74 in the wild and no public exploit code.","fix":"Upgrade sagemaker-training to 4.8.0 or later.","what":"GHSA-635v-pc42-fr74 is a vulnerability in sagemaker-training, published on 11 Sep 2024. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for GHSA-635v-pc42-fr74 and fix it if it is affected.\n\nWhat it is: GHSA-635v-pc42-fr74 is a vulnerability in sagemaker-training, published on 11 Sep 2024. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of GHSA-635v-pc42-fr74 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- sagemaker-training (PyPI): affected from 4.7.0; fixed in 4.8.0\n- sagemaker-training (PyPI): affected from 4.7.0; fixed in 4.8.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/GHSA-635v-pc42-fr74/ (Markdown: https://insights.sbomify.com/GHSA-635v-pc42-fr74/index.md)","id":"GHSA-635v-pc42-fr74","markdown":"https://insights.sbomify.com/GHSA-635v-pc42-fr74/index.md","name":"GHSA-635v-pc42-fr74","record":{"aliases":[],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read","data_modify"],"network_reachable":"yes","non_default_config":true,"product_category":"AWS SageMaker Training Toolkit","requires_auth":"low_privilege","summary":"Attackers with CloudWatch log access can steal CodeArtifact tokens to publish or consume packages if logging is enabled.","user_interaction":"not_required","vuln_class":"information_disclosure"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"## 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","ecosystems":["PyPI"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":true,"headline":"AWS SageMaker Training Toolkit logs CodeArtifact Authorization token","id":"GHSA-635v-pc42-fr74","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"information_disclosure","year":"2024"},"n_packages":2,"n_references":null,"packages":[{"ecosystem":"PyPI","fixed":["4.8.0"],"introduced":["4.7.0"],"last_affected":[],"package":"sagemaker-training","purl":null,"source":"GHSA-635v-pc42-fr74"},{"ecosystem":"PyPI","fixed":["4.8.0"],"introduced":["4.7.0"],"last_affected":[],"package":"sagemaker-training","purl":"pkg:pypi/sagemaker-training","source":"GHSA-635v-pc42-fr74"}],"products":null,"published":"2024-09-11","related":[],"sources":[{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"updated":null,"vendors":null},"summary":"Attackers with CloudWatch log access can steal CodeArtifact tokens to publish or consume packages if logging is enabled.","url":"https://insights.sbomify.com/GHSA-635v-pc42-fr74/"}