CVE-2017-5200 SaltStack Salt arbitrary command execution in Salt-api via ssh_client
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.
| Package | Affected | Fixed in |
|---|---|---|
salt PyPI | All versions | 2015.8.13, 2016.3.5, 2016.11.2 |
salt PyPI | All versions | 2015.8.13 |
salt PyPI | All versions | 2015.8.13 |
salt PyPI | From 2016.11.0 | 2016.11.2 |
salt PyPI | From 2016.11.0 | 2016.11.2 |
salt PyPI | From 2016.3.0 | 2016.3.5 |
1 more packages
salt PyPI | From 2016.3.0 | 2016.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.
Other vulnerabilities in Saltstack Salt
- CVE-2013-4437 SaltStack insecurely uses /tmp
- CVE-2013-6617 SaltStack Privilege Escalation vulnerability
- CVE-2021-33226 Code injection in n/a
- CVE-2021-25315 salt-api unauthenticated remote code execution
- CVE-2018-15751 SaltStack Salt Remote command execution and incorrect access control when using salt-api
Sources
Also known as GHSA-8r7r-x48r-pf8f, PYSEC-2017-39, UBUNTU-CVE-2017-5200.