CVE-2017-5200 SaltStack Salt arbitrary command execution in Salt-api via ssh_client

High 8.8 Published Updated

Attackers can execute arbitrary commands on the salt-master via the ssh_client interface, requiring immediate upgrades to secure the infrastructure.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2017-5200?

CVE-2017-5200 is a high-severity command injection vulnerability in Saltstack Salt, published on 26 Sep 2017. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

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.

Which versions are affected by CVE-2017-5200?

7 open source packages ship an affected version, including salt. It affects 1 product.

PackageAffectedFixed in
salt PyPIAll versions2015.8.13, 2016.3.5, 2016.11.2
salt PyPIAll versions2015.8.13
salt PyPIAll versions2015.8.13
salt PyPIFrom 2016.11.02016.11.2
salt PyPIFrom 2016.11.02016.11.2
salt PyPIFrom 2016.3.02016.3.5
1 more packages
salt PyPIFrom 2016.3.02016.3.5

Products include Saltstack Salt.

How do I fix CVE-2017-5200?

Upgrade salt to a fixed version for your release line: 2015.8.13, 2016.3.5 or 2016.11.2.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2017-5200 being exploited?

There is no known exploitation of CVE-2017-5200 in the wild and no public exploit code.

All Saltstack Salt vulnerabilities

Sources

Also known as GHSA-8r7r-x48r-pf8f, PYSEC-2017-39, UBUNTU-CVE-2017-5200.

Is CVE-2017-5200 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free