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

- Priority: **Routine**
- Reason: Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2024-05-03 · Modified: 2024-08-02
- Aliases: GHSA-7pc3-pr3q-58vg, PYSEC-2026-1887
- Record: https://cvemate.com/vulnerability/CVE-2024-34073 · JSON: https://cvemate.com/vulnerability/CVE-2024-34073/json

## Description

```text
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.
```

## Signals

- CVSS: 7.8 high (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- EPSS: 1.143%, percentile 67.781%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- aws sagemaker-python-sdk: \< 2.214.3
- PyPI sagemaker (PyPI): \< 2.214.3

## References

- <https://github.com/aws/sagemaker-python-sdk/security/advisories/GHSA-7pc3-pr3q-58vg>
- <https://github.com/aws/sagemaker-python-sdk/pull/4556>
- <https://github.com/aws/sagemaker-python-sdk/commit/2d873d53f708ea570fc2e2a6974f8c3097fe9df5>
- <https://nvd.nist.gov/vuln/detail/CVE-2024-34073>
- <https://github.com/aws/sagemaker-python-sdk>
- <https://pypi.org/project/sagemaker>
- <https://github.com/advisories/GHSA-7pc3-pr3q-58vg>

---

Data as of 2026-12-05T10:32:39.923Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
