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

- Severity: High 7.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.15%, higher than 67% of CVEs (2026-12-01)
- Published: 2024-05-03T10:11:12.203Z
- Modified: 2026-09-10T03:50:13.557Z
- Also known as: GHSA-7pc3-pr3q-58vg, PYSEC-2026-1887
- Weaknesses: CWE-78
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- aws sagemaker-python-sdk: < 2.214.3; before 2.214.3
- sagemaker (PyPI): before 2.214.3

## Every score

- GitHub_M: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`

## References

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

## Sources

- CVE List: [CVE-2024-34073](https://www.cve.org/CVERecord?id=CVE-2024-34073), CVE Terms of Use, modified 2024-08-02
- GitHub Advisory Database: [GHSA-7pc3-pr3q-58vg](https://github.com/advisories/GHSA-7pc3-pr3q-58vg), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2024-34073](https://nvd.nist.gov/vuln/detail/CVE-2024-34073), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-1887](https://osv.dev/vulnerability/PYSEC-2026-1887), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2024-34073 · Whole record: https://cve.day/CVE-2024-34073.json · Rebuilt by cve.day 2026-11-25T22:58:39.928Z
