OS Command Injection Affecting sagemaker package, versions [,2.214.3)


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team

    Threat Intelligence

    EPSS
    0.05% (18th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk ID SNYK-PYTHON-SAGEMAKER-6808828
  • published 5 May 2024
  • disclosed 3 May 2024
  • credit HiddenLayer, Kasimir123

How to fix?

Upgrade sagemaker to version 2.214.3 or higher.

Overview

sagemaker is an Open source library for training and deploying models on Amazon SageMaker.

Affected versions of this package are vulnerable to OS Command Injection due to the capture_dependencies function in the sagemaker.serve.save_retrive.version_1_0_0.save.utils module. An attacker can execute arbitrary code or cause a denial of service by passing an inappropriate command as the requirements_path parameter.

Workaround

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

CVSS Scores

version 3.1
Expand this section

Snyk

Recommended
7.8 high
  • Attack Vector (AV)
    Local
  • Attack Complexity (AC)
    Low
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    Required
  • Scope (S)
    Unchanged
  • Confidentiality (C)
    High
  • Integrity (I)
    High
  • Availability (A)
    High