CVE-2017-5200: Salt SaltStack Salt Arbitrary Command Execution Vulnerability

HIGH
Advisory Identifier: GHSA-8r7r-x48r-pf8f
CVSS 8.8
Published
Advisory Summary

CVE-2017-5200 is a HIGH (CVSS 8.8) saltstack salt arbitrary command execution vulnerability (General Security Weakness) affecting Salt libraries in the PyPI ecosystem. The issue involves saltstack salt arbitrary command execution in salt-api via ssh_client. Remediation is available by upgrading affected packages to version 2015.8.13, 2016.3.5, 2016.11.2.

CVE-2017-5200 at a Glance

CVE Identifier CVE-2017-5200
GHSA Identifier GHSA-8r7r-x48r-pf8f
Severity HIGH
CVSS v3.1 Base Score 8.8
CWE Classification General Security Weakness
Affected Product Salt
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 8.8

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2017-5200

To remediate this vulnerability, upgrade all affected Salt dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

salt fixed: 2015.8.13
pip install salt>=2015.8.13
salt fixed: 2016.3.5
pip install salt>=2016.3.5
salt fixed: 2016.11.2
pip install salt>=2016.11.2
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show salt

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2017-5200, inspect your installed packages using pip:

pip show salt

Analyze the terminal output to locate any version of Salt in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2015.8.13), your application is affected.

Note: The pip show salt command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under General Security Weakness. In Salt, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

Salt-api in SaltStack Salt before 2015.8.13, 2016.3.x before 2016.3.5, and 2016.11.x before 2016.11.2 allows arbitrary command execution on a salt-master via Salt's ssh_client.

CVE-2017-5200 Affected Salt Versions

3 component(s)
Fixed Versions:
2015.8.132016.3.52016.11.2
Product / Package Ecosystem Affected Versions Fixed Version
salt
PyPI
< 2015.8.13
2015.8.13
salt
PyPI
≥ 2016.3.0
< 2016.3.5
2016.3.5
salt
PyPI
≥ 2016.11.0
< 2016.11.2
2016.11.2

References

Frequently Asked Questions

What is CVE-2017-5200?
CVE-2017-5200 is a security vulnerability in Salt involving SaltStack Salt arbitrary command execution in Salt-api via ssh_client under General Security Weakness.
Which Salt versions are affected?
Affected versions include releases prior to 2015.8.13, 2016.3.5, 2016.11.2 across affected packages: salt.
What version fixes CVE-2017-5200?
Upgrading to 2015.8.13, 2016.3.5, 2016.11.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is salt affected?
Yes, salt is affected in releases prior to 2015.8.13, 2016.3.5, 2016.11.2. Upgrade your dependency to 2015.8.13, 2016.3.5, 2016.11.2 or later.
What is the CVSS score of CVE-2017-5200?
CVE-2017-5200 has a CVSS v3.1 base score of 8.8 (HIGH) with vector string CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2017-5200?
CVE-2017-5200 is classified under General Security Weakness.
How can I check PyPI dependencies for CVE-2017-5200?
Run the dependency tree command: 'pip show salt'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-8r7r-x48r-pf8f",
  "modified" : "2024-10-21T21:07:26Z",
  "published" : "2022-05-13T01:46:08Z",
  "aliases" : [ "CVE-2017-5200" ],
  "summary" : "SaltStack Salt arbitrary command execution in Salt-api via ssh_client",
  "details" : "Salt-api in SaltStack Salt before 2015.8.13, 2016.3.x before 2016.3.5, and 2016.11.x before 2016.11.2 allows arbitrary command execution on a salt-master via Salt's ssh_client.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "salt"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2015.8.13"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "salt"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2016.3.0"
      }, {
        "fixed" : "2016.3.5"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "salt"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2016.11.0"
      }, {
        "fixed" : "2016.11.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2017-5200"
  }, {
    "type" : "WEB",
    "url" : "https://docs.saltstack.com/en/2016.3/topics/releases/2015.8.13.html"
  }, {
    "type" : "WEB",
    "url" : "https://docs.saltstack.com/en/2016.3/topics/releases/2016.3.5.html"
  }, {
    "type" : "WEB",
    "url" : "https://docs.saltstack.com/en/latest/topics/releases/2016.11.2.html"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/salt/PYSEC-2017-39.yaml"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/saltstack/salt"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-04-22T22:21:09Z",
    "nvd_published_at" : "2017-09-26T14:29:00Z"
  }
}