CVE-2017-12791: Directory Traversal Vulnerability in SaltStack Salt

salt Updated 02 Oct 2025

Summary

23/08/2017
Yes i
Critical
9.8

CVE-2017-12791: Directory traversal vulnerability in minion id validation in SaltStack Salt before 2016.11.7 and 2017.7.x before 2017.7.1 allows remote minions with incorrect credentials to authenticate to a master via a crafted minion... Affects salt across 2 version ranges.

< 2016.11.7 >= 2017.7, < 2017.7.1

Fixed in 2016.11.7 or 2017.7.1, depending on the release line you run. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

SaltStack Salt is an open-source configuration management and remote execution software. It is designed to manage and automate the infrastructure of large-scale IT environments. The software allows administrators to control and configure multiple servers from a central location. SaltStack Salt utilizes a client-server architecture, where a master server communicates with remote minions to execute commands and manage configurations. This vulnerability affects versions before 2016.11.7 and 2017.7.x before 2017.7.1.

Vulnerability Detail

The vulnerability identified as CVE-2017-12791 is a directory traversal vulnerability in the minion ID validation process of SaltStack Salt. It allows remote minions with incorrect credentials to authenticate to a master server using a crafted minion ID. By exploiting this vulnerability, an attacker can gain unauthorized access to the master server and potentially execute arbitrary commands or manipulate configurations. This vulnerability poses a significant risk to the integrity and security of the SaltStack Salt infrastructure.

How To Fix

Latest published version: 3008.3.0 as of 22 Oct 2026

pip install --upgrade "salt==3008.3.0"

Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.

If you can't move to the latest

The minimum fixed version depends on the release line you run.

  • < 2016.11.7 2016.11.7
    pip install --upgrade "salt==2016.11.7"
  • >= 2017.7, < 2017.7.1 2017.7.1
    pip install --upgrade "salt==2017.7.1"

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Workaround

There is no known workaround for this vulnerability. It is essential to apply the recommended fix by upgrading to the patched versions of SaltStack Salt.

Conclusion

The directory traversal vulnerability in SaltStack Salt (CVE-2017-12791) poses a significant security risk to the infrastructure. It is crucial for administrators to upgrade their SaltStack Salt installations to the patched versions to mitigate the vulnerability. For further support and assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for salt →

Share this vulnerability

FAQ

SaltStack Salt is an open-source configuration management and remote execution software used for managing and automating IT infrastructure.

This vulnerability allows remote minions with incorrect credentials to authenticate to a master server, potentially leading to unauthorized access and manipulation of the SaltStack Salt infrastructure.

To fix this vulnerability, upgrade SaltStack Salt to version 2016.11.7 or later, or version 2017.7.1 or later.

No, there are no known workarounds for this vulnerability. Upgrading to the patched versions is the recommended solution.

You can find more information about this vulnerability in the SaltStack Salt advisory database: https://github.com/pypa/advisory-database/blob/main/vulns/salt/PYSEC-2017-35.yaml

Related vulnerabilities

Recent vulnerabilities recorded for salt.

How To Fix

Latest published version: 3008.3.0 as of 22 Oct 2026

pip install --upgrade "salt==3008.3.0"

Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.

If you can't move to the latest

The minimum fixed version depends on the release line you run.

  • < 2016.11.7 2016.11.7
    pip install --upgrade "salt==2016.11.7"
  • >= 2017.7, < 2017.7.1 2017.7.1
    pip install --upgrade "salt==2017.7.1"

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback