Vulnerability · Published May 3, 2024 · Assigned by GitHub_M

CVE-2024-34073Command Injection in sagemaker-python-sdk

High 7.8

In plain English

A high-severity OS command injection in sagemaker-python-sdk from aws. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.2% (higher than 67% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.8High
Exploit odds (30 days)1.2%top 32.9% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

sagemaker-python-sdk is a library for training and deploying machine learning models on Amazon SageMaker. In affected versions the capture_dependencies function in `sagemaker.serve.save_retrive.version_1_0_0.save.utils` module allows for potentially unsafe Operating System (OS) Command Injection if inappropriate command is passed as the “requirements_path” parameter. This consequently may allow an unprivileged third party to cause remote code execution, denial of service, affecting both confidentiality and integrity. This issue has been addressed in version 2.214.3. Users are advised to upgrade. Users unable to upgrade should not override the “requirements_path” parameter of capture_dependencies function in `sagemaker.serve.save_retrive.version_1_0_0.save.utils`, and instead use the default value.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
PyPIsagemaker2.214.3GHSA-7pc3-pr3q-58vg
PyPIsagemaker2.214.3PYSEC-2026-1887

Affected products (as reported)

VendorProductVersions
aws sagemaker-python-sdk < 2.214.3

Weakness: CWE-78 · Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

References