Live threats

All CVEs / SaltStack

CVE-2020-16846SaltStack Salt

Shell Injection in SaltStack Salt API without Authentication

Critical 9.8 KEV No auth neededHigh EPSS

Priority
84
CVSS 3.1
9.8
EPSS
99.6%
probability of exploitation in 30 days · percentile 100
Auth required
No
In KEV since
Nov 3, 2021
CISA deadline
May 3, 2022
Ransomware use
Unknown
Published
Nov 6, 2020
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-78
SSVC (CISA)
Exploitation: active · Automatable: yes · Technical impact: total
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

What happens

SaltStack Salt through version 3002 allows an unauthenticated attacker to inject shell commands via crafted web requests to the Salt API when the SSH client is enabled. A remote attacker can execute arbitrary code on the server. CISA confirmed this vulnerability as exploited in the wild.

Show the original NVD text

An issue was discovered in SaltStack Salt through 3002. Sending crafted web requests to the Salt API, with the SSH client enabled, can result in shell injection.

Source text, unmodified. NVD.

Exploitation confirmed by CISA

SaltStack Salt allows an unauthenticated user with network access to the Salt API to use shell injections to run code on the Salt API using the SSH client. This vulnerability affects any users running the Salt API.

Action required by CISA: Apply updates per vendor instructions.

Source text, unmodified. CISA KEV.

What to do

Patch available · fixed versions: 2015.8.13, 2016.3.8, 2016.11.10, 2017.7.8, 2018.3.5, 2019.2.6, 3000.4, 3001.2

Update Salt to a patched version (2015.8.13, 2016.3.8, 2016.11.10, 2017.7.8, 2018.3.5, 2019.2.6, 3000.4, 3001.2 or later) or disable the SSH client in the API.

Vendor advisory · github.com ↗

  1. Apply the vendor's security update for Salt.
  2. CISA has confirmed it is exploited: treat it as urgent. The deadline for US federal agencies was May 3, 2022.
  3. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
  4. Check logs for signs of earlier exploitation.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI salt < 2015.8.13 2015.8.13 pip install "salt>=2015.8.13"
PyPI salt ≥ 2016.3.0 < 2016.3.8 2016.3.8 pip install "salt>=2016.3.8"
PyPI salt ≥ 2016.11.0 < 2016.11.10 2016.11.10 pip install "salt>=2016.11.10"
PyPI salt ≥ 2017.5.0 < 2017.7.8 2017.7.8 pip install "salt>=2017.7.8"
PyPI salt ≥ 2018.2.0 < 2018.3.5 2018.3.5 pip install "salt>=2018.3.5"
PyPI salt ≥ 2019.2.0 < 2019.2.6 2019.2.6 pip install "salt>=2019.2.6"
PyPI salt ≥ 3000.0 < 3000.4 3000.4 pip install "salt>=3000.4"
PyPI salt ≥ 3001 < 3001.2 3001.2 pip install "salt>=3001.2"
PyPI salt ≥ 3002 < 3002.1 3002.1 pip install "salt>=3002.1"
PyPI salt < 2015.8.10 2015.8.10 pip install "salt>=2015.8.10"
PyPI salt ≥ 2015.8.11 < 2015.8.13 2015.8.13 pip install "salt>=2015.8.13"
PyPI salt ≥ 2016.3.0 < 2016.3.4 2016.3.4 pip install "salt>=2016.3.4"
PyPI salt ≥ 2016.3.5 < 2016.3.6 2016.3.6 pip install "salt>=2016.3.6"

Per OSV / GitHub Advisories (GHSA-qr38-h96j-2j3w, PYSEC-2020-104). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
saltstacksalt< 2015.8.10
saltstacksalt≥ 2015.8.11 < 2015.8.13
saltstacksalt≥ 2016.3.0 < 2016.3.4
saltstacksalt≥ 2016.3.5 < 2016.3.6
saltstacksalt≥ 2016.3.7 < 2016.3.8
saltstacksalt≥ 2016.11.0 < 2016.11.3
saltstacksalt≥ 2016.11.4 < 2016.11.6
saltstacksalt≥ 2016.11.7 < 2016.11.10
saltstacksalt≥ 2017.5.0 < 2017.7.4
saltstacksalt≥ 2017.7.5 < 2017.7.8
saltstacksalt≥ 2018.2.0 < 2018.3.5
saltstacksalt≥ 2019.2.0 < 2019.2.5
saltstacksalt≥ 3000.0 < 3000.3
saltstacksalt3001
saltstacksalt3002
debiandebian_linux9.0
debiandebian_linux10.0
fedoraprojectfedora31
opensuseleap15.1

Official sources

References

Links published by the sources. Open them with care.