CVE-2024-34073 Command Injection in sagemaker-python-sdk
Command injection in sagemaker-python-sdk allows remote code execution and denial of service if the requirements_path parameter is improperly controlled.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2024-34073?
CVE-2024-34073 is a high-severity command injection vulnerability in aws sagemaker-python-sdk, published on 3 May 2024. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
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.
Weakness: CWE-78
Which versions are affected by CVE-2024-34073?
3 open source packages ship an affected version, including sagemaker.
| Package | Affected | Fixed in |
|---|---|---|
sagemaker PyPI | All versions | 2.214.3 |
sagemaker PyPI | All versions | 2.214.3 |
sagemaker PyPI | All versions | 2.214.3 |
How do I fix CVE-2024-34073?
Upgrade sagemaker to 2.214.3 or later.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2024-34073 being exploited?
There is no known exploitation of CVE-2024-34073 in the wild and no public exploit code.
Sources
Also known as GHSA-7pc3-pr3q-58vg, PYSEC-2026-1887.