CVE-2017-14695 SaltStack Salt Directory traversal vulnerability in minion id validation

Critical 9.8 Published Updated

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.

PackageAffectedFixed in
salt PyPIAll versions2016.3.8, 2016.11.8, 2017.7.2
salt PyPIAll versions2016.3.8
salt PyPIAll versions2016.3.8
salt PyPIFrom 2016.11.02016.11.8
salt PyPIFrom 2016.11.02016.11.8
salt PyPIFrom 2017.7.02017.7.2
1 more packages
salt PyPIFrom 2017.7.02017.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.

All Saltstack Salt vulnerabilities

Sources

Also known as GHSA-j6gj-pg62-x8j6, PYSEC-2017-36, UBUNTU-CVE-2017-14695.

Is CVE-2017-14695 in your software?

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

Check your SBOMs for free