CVE-2020-16846SaltStack Salt
Shell Injection in SaltStack Salt API without Authentication
Critical 9.8 KEV No auth neededHigh EPSS
Follow: this CVE · SaltStack · SaltStack Salt We alert you by email or Slack (account required).
- 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.
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.
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.
- Apply the vendor's security update for Salt.
- CISA has confirmed it is exploited: treat it as urgent. The deadline for US federal agencies was May 3, 2022.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
- Check logs for signs of earlier exploitation.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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)
| Vendor | Product | Versions |
|---|---|---|
| saltstack | salt | < 2015.8.10 |
| saltstack | salt | ≥ 2015.8.11 < 2015.8.13 |
| saltstack | salt | ≥ 2016.3.0 < 2016.3.4 |
| saltstack | salt | ≥ 2016.3.5 < 2016.3.6 |
| saltstack | salt | ≥ 2016.3.7 < 2016.3.8 |
| saltstack | salt | ≥ 2016.11.0 < 2016.11.3 |
| saltstack | salt | ≥ 2016.11.4 < 2016.11.6 |
| saltstack | salt | ≥ 2016.11.7 < 2016.11.10 |
| saltstack | salt | ≥ 2017.5.0 < 2017.7.4 |
| saltstack | salt | ≥ 2017.7.5 < 2017.7.8 |
| saltstack | salt | ≥ 2018.2.0 < 2018.3.5 |
| saltstack | salt | ≥ 2019.2.0 < 2019.2.5 |
| saltstack | salt | ≥ 3000.0 < 3000.3 |
| saltstack | salt | 3001 |
| saltstack | salt | 3002 |
| debian | debian_linux | 9.0 |
| debian | debian_linux | 10.0 |
| fedoraproject | fedora | 31 |
| opensuse | leap | 15.1 |
Official sources
References
Links published by the sources. Open them with care.
- lists.opensuse.org Mailing List Third Party Advisory
- packetstormsecurity.com Exploit Third Party Advisory VDB Entry
- github.com Release Notes
- lists.debian.org Mailing List Third Party Advisory
- lists.debian.org Mailing List Third Party Advisory
- lists.fedoraproject.org Release Notes
- security.gentoo.org Third Party Advisory
- www.debian.org Mailing List Third Party Advisory
- www.saltstack.com Broken Link Vendor Advisory
- www.zerodayinitiative.com Third Party Advisory VDB Entry
- www.zerodayinitiative.com Third Party Advisory VDB Entry
- www.zerodayinitiative.com Third Party Advisory VDB Entry
- www.zerodayinitiative.com Third Party Advisory VDB Entry
- www.zerodayinitiative.com Third Party Advisory VDB Entry
- www.cisa.gov US Government Resource