CVE-2017-14695 SaltStack Salt Directory traversal vulnerability in minion id validation
Remote attackers can bypass authentication and gain unauthorized access to the Salt master by exploiting a directory traversal flaw in minion ID validation.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2017-14695?
CVE-2017-14695 is a critical path traversal vulnerability in Saltstack Salt, published on 24 Oct 2017. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Directory traversal vulnerability in minion id validation in SaltStack Salt before 2016.3.8, 2016.11.x before 2016.11.8, and 2017.7.x before 2017.7.2 allows remote minions with incorrect credentials to authenticate to a master via a crafted minion ID. NOTE: this vulnerability exists because of an incomplete fix for CVE-2017-12791.
Weakness: CWE-22
Which versions are affected by CVE-2017-14695?
7 open source packages ship an affected version, including salt. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
salt PyPI | All versions | 2016.3.8, 2016.11.8, 2017.7.2 |
salt PyPI | All versions | 2016.3.8 |
salt PyPI | All versions | 2016.3.8 |
salt PyPI | From 2016.11.0 | 2016.11.8 |
salt PyPI | From 2016.11.0 | 2016.11.8 |
salt PyPI | From 2017.7.0 | 2017.7.2 |
1 more packages
salt PyPI | From 2017.7.0 | 2017.7.2 |
Products include Saltstack Salt.
How do I fix CVE-2017-14695?
Upgrade salt to a fixed version for your release line: 2016.3.8, 2016.11.8 or 2017.7.2.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2017-14695 being exploited?
There is no known exploitation of CVE-2017-14695 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-j6gj-pg62-x8j6, PYSEC-2017-36, UBUNTU-CVE-2017-14695.