{"id":"CVE-2024-34073","aliases":["CVE-2024-34073","GHSA-7pc3-pr3q-58vg","PYSEC-2026-1887"],"related":[],"kind":"vulnerability","state":"published","title":"Command Injection in sagemaker-python-sdk","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nThe capture_dependencies function in `sagemaker.serve.save_retrive.version_1_0_0.save.utils` module before version 2.214.3 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.\n\nImpacted versions: <2.214.3\n\n### Credit\n\nWe would like to thank HiddenLayer for collaborating on this issue through the coordinated vulnerability disclosure process.\n\n### Workarounds\n\nDo not override the “requirements_path” parameter of capture_dependencies function in `sagemaker.serve.save_retrive.version_1_0_0.save.utils`, instead use the default value.\n\n### References\n\nIf you have any questions or comments about this advisory we ask that you contact AWS/Amazon Security via our vulnerability reporting page [1] or directly via email to aws-security@amazon.com. Please do not create a public GitHub issue.\n[1] Vulnerability reporting page: https://aws.amazon.com/security/vulnerability-reporting\n\nFixed by: https://github.com/aws/sagemaker-python-sdk/pull/4556","format":"markdown","source":"ghsa"},{"lang":"es","text":"sagemaker-python-sdk es una librería para entrenar e implementar modelos de aprendizaje automático en Amazon SageMaker. En las versiones afectadas, la función capture_dependencies en el módulo `sagemaker.serve.save_retrive.version_1_0_0.save.utils` permite la inyección de comandos del sistema operativo (SO) potencialmente inseguro si se pasa un comando inapropiado como parámetro “requirements_path”. En consecuencia, esto puede permitir que un tercero sin privilegios provoque la ejecución remota de código y la denegación de servicio, afectando tanto la confidencialidad como la integridad. Este problema se solucionó en la versión 2.214.3. Se recomienda a los usuarios que actualicen. Los usuarios que no puedan actualizar no deben anular el parámetro \"requirements_path\" de la función capture_dependencies en `sagemaker.serve.save_retrive.version_1_0_0.save.utils` y, en su lugar, usar el valor predeterminado.","source":"nvd"}],"published":"2024-05-03T10:11:12.203Z","modified":"2026-09-10T03:50:13.557Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-78"],"affected":[{"ranges":[{"version":"< 2.214.3","status":"affected"}],"vendor":"aws","product":"sagemaker-python-sdk","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"0","fixed":"2.214.3","status":"affected"}],"vendor":"aws","product":"sagemaker-python-sdk","cpe":"cpe:2.3:a:aws:sagemaker-python-sdk:-:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.214.3"}],"ecosystem":"PyPI","package":"sagemaker","purl":"pkg:pypi/sagemaker","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.214.3"}],"ecosystem":"PyPI","package":"sagemaker","purl":"pkg:pypi/sagemaker","source":"pysec"}],"references":[{"url":"https://github.com/aws/sagemaker-python-sdk/security/advisories/GHSA-7pc3-pr3q-58vg","tags":["web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/aws/sagemaker-python-sdk/pull/4556","tags":["web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/aws/sagemaker-python-sdk/commit/2d873d53f708ea570fc2e2a6974f8c3097fe9df5","tags":["fix","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-34073","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/aws/sagemaker-python-sdk","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/sagemaker","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-7pc3-pr3q-58vg","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2024-05-03T14:52:50.210Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-34073","url":"https://www.cve.org/CVERecord?id=CVE-2024-34073","licence":"CVE Terms of Use","modified":"2024-08-02T02:42:59.880Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-7pc3-pr3q-58vg","url":"https://github.com/advisories/GHSA-7pc3-pr3q-58vg","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:13.557Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-34073","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-34073","licence":"Public domain","modified":"2026-06-17T07:32:51.327Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-1887","url":"https://osv.dev/vulnerability/PYSEC-2026-1887","licence":"CC-BY-4.0","modified":"2026-07-07T17:47:48.511Z"}],"updatedAt":"2026-11-25T22:58:39.928Z","epss":{"score":0.01153,"percentile":0.67871,"date":"2026-12-01T12:00:22.000Z"}}