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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: None; User interaction: Required; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 1.84% (percentile 80, 2026-11-28)
- **CWE:** CWE-78
- **Aliases:** GHSA-7pc3-pr3q-58vg, PYSEC-2026-1887
- **Published:** 2024-05-03T10:11:12.203Z
- **Modified:** 2026-09-10T03:50:13.557Z

## Who should check

- Projects that depend on PyPI package sagemaker (\< 2.214.3)
- Anyone running aws sagemaker-python-sdk \< 2.214.3

## 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 and fixed versions

- PyPI `sagemaker`: affected \< 2.214.3; fixed 2.214.3 (osv)
- aws sagemaker-python-sdk: \< 2.214.3 (cvelist)

## Mitigation

- Upgrade sagemaker to 2.214.3 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-34073. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-34073.md
Affected: sagemaker < 2.214.3
Fixed in: 2.214.3

Steps:
1. Search this machine and project for sagemaker (PyPI), aws sagemaker-python-sdk: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-34073 being exploited?

There is no confirmed exploitation: CVE-2024-34073 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.84% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2024-34073?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2024-34073?

sagemaker \< 2.214.3.

### Is there a fix for CVE-2024-34073?

Yes. Fixed in 2.214.3. Upgrade sagemaker to 2.214.3 or later.

### How do I check if I'm affected by CVE-2024-34073?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

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

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-34073>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-7pc3-pr3q-58vg> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/PYSEC-2026-1887> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2024-34073> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-34073>
