---
id: CVE-2017-12791
aliases:
  - GHSA-xxvj-8g5m-4qgw
  - PYSEC-2017-35
title: SaltStack Salt Directory traversal vulnerability in minion id validation
summary: SaltStack Salt Directory traversal vulnerability in minion id validation
severity: critical
cvss: 9.8
cvssVector: 'CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'
vendor: salt
product: salt
ecosystem: pip
affected:
  - salt < 2016.11.7
  - 'salt >= 2017.7.0, < 2017.7.1'
patched:
  - salt 2016.11.7
  - salt 2017.7.1
published: '2022-05-17'
updated: '2026-07-09'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-xxvj-8g5m-4qgw'
references:
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2017-12791'
  - url: 'https://github.com/saltstack/salt/pull/42944'
  - url: 'https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=872399'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=1482006'
  - url: 'https://docs.saltstack.com/en/2016.11/topics/releases/2016.11.7.html'
  - url: 'https://docs.saltstack.com/en/latest/topics/releases/2017.7.1.html'
  - url: >-
      https://github.com/pypa/advisory-database/tree/main/vulns/salt/PYSEC-2017-151.yaml
  - url: >-
      https://github.com/pypa/advisory-database/tree/main/vulns/salt/PYSEC-2017-35.yaml
  - url: 'https://github.com/saltstack/salt'
tags:
  - osv
  - pip
epss: 0.04667
epssPercentile: 0.91345
ingestedAt: '2026-07-09T18:56:35.306Z'
---

## Overview

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 ID.

## Affected packages

- `salt < 2016.11.7`
- `salt >= 2017.7.0, < 2017.7.1`

## Remediation

Upgrade to a patched release:

- `salt 2016.11.7`
- `salt 2017.7.1`
