CVE-2024-34073
Command Injection in sagemaker-python-sdk
Also known as GHSA-7pc3-pr3q-58vg, PYSEC-2026-1887
Mitigation
- Upgrade sagemaker to 2.214.3 or later.
Who should check
- Projects that depend on PyPI package sagemaker (< 2.214.3)
- Anyone running aws sagemaker-python-sdk < 2.214.3
Vulnerability facts
- Affected
- sagemaker < 2.214.3
- Fixed in
- 2.214.3
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 7.8 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 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
- EPSS
- 1.84% chance of exploitation in 30 days (percentile 79, 2026-11-26)
- CWE
- CWE-78
- Modified
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
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
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.
References
Vendor advisories
Patches
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-26).
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.