CVE-2020-16846: SaltStack Salt Shell Injection
SaltStack Salt · listed in the CISA catalog of actively exploited vulnerabilities since 2021-11-03.
- CVSS v3.1 (CVE record)
- 9.8
- critical
- EPSS (exploit probability, 30 days)
- 99.5%
- among the highest 0.1% of all CVEs
- Added to CISA KEV
- 2021-11-03
- US federal due date 2022-05-03
- Ubuntu priority
- high
CVE-2020-16846 explained
CVE-2020-16846 is a shell injection flaw in SaltStack Salt through 3002. Crafted web requests to the Salt API, when the SSH client is enabled, can lead to shell injection. It is listed in the CISA Known Exploited Vulnerabilities catalog, so it is known to be exploited in the wild.
Impact
A remote attacker needs no privileges and no user interaction. Over the network, they can inject shell commands through the Salt API when the SSH client is enabled. A successful attack can fully compromise confidentiality, integrity and availability on the affected system. Exposure depends on the Salt API being reachable and the SSH client being enabled.
Who is affected
The salt source package is affected on Ubuntu 14.04 LTS, Ubuntu 16.04 LTS and Ubuntu 18.04 LTS. All three have fixed versions, available only through Ubuntu Pro (ESM): 0.17.5+ds-1ubuntu0.1~esm4 for 14.04, 2015.8.8+ds-1ubuntu0.1+esm2 for 16.04, and 2017.7.4+dfsg1-1ubuntu18.04.2+esm1 for 18.04. Ubuntu 14.04 and 16.04 are end of life. Standard support for 18.04 has ended.
Written with AI from the data on this page and checked against it automatically.
Official description
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.
CISA required action: Apply updates per vendor instructions.
CISA notes
Ubuntu and Debian releases
A server is vulnerable if it has a package built from the listed source package installed in a version lower than the fixed version for its release.
Ubuntu 18.04 LTS·salt
fix via Ubuntu Pro
Fixed: 2017.7.4+dfsg1-1ubuntu18.04.2+esm1
Ubuntu 16.04 LTS·salt
fix via Ubuntu Pro
Fixed: 2015.8.8+ds-1ubuntu0.1+esm2
Ubuntu 14.04 LTS·salt
fix via Ubuntu Pro
Fixed: 0.17.5+ds-1ubuntu0.1~esm4
What to do
- Identify hosts running the
saltpackage, especially systems that expose the Salt API. - On Ubuntu 14.04, 16.04 or 18.04, enable Ubuntu Pro (ESM) and install the fixed
saltversion for your release. - Restart Salt services after updating so the patched code is loaded.
- Plan upgrades of end-of-life releases (14.04, 16.04) to a supported Ubuntu release.
- Restrict network access to the Salt API to trusted management hosts only.
Written with AI from the data on this page and checked against it automatically.
Check and fix on a server
Run on each Ubuntu or Debian server. Replace salt with the source package from the table above.
1. Show installed packages built from the source package, with their versions
dpkg-query -W -f='${binary:Package} ${Version} ${source:Package}\n' | awk '$3=="salt"'2. Compare each installed version with the fixed version for your release from the table
I=INSTALLED_VERSION; F=FIXED_VERSION # replace both
dpkg --compare-versions "$I" lt "$F"; case $? in 0) echo vulnerable ;; 1) echo "fixed or newer" ;; *) echo "check the versions" ;; esac3. Install the fix
sudo apt update && sudo apt install --only-upgrade $(dpkg-query -W -f='${binary:Package} ${source:Package}\n' | awk '$2=="salt"{print $1}')Services keep running the old code until they are restarted – restart the affected service or check with needrestart.
Rows marked “fix via Ubuntu Pro”: these fixes are only installable with an Ubuntu Pro subscription (ESM). Attach the machine first (sudo pro attach, then sudo pro enable esm-infra esm-apps), then run the commands above.
CISA's assessment (SSVC)
- Exploitation
- Exploited in the wild
- Automatable
- Yes – attackers can automate it at scale
- Technical impact
- Total – full control of the component or total information disclosure
Weakness: CWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Questions about CVE-2020-16846
- Is this vulnerability actively exploited?
- Yes. CISA added it to its Known Exploited Vulnerabilities catalog on 2021-11-03. The required action is to apply updates per vendor instructions. Whether it is used in ransomware campaigns is listed as unknown.
- Are all Salt installations exposed?
- The issue is triggered by crafted web requests to the Salt API with the SSH client enabled. Systems where the Salt API is reachable and the SSH client is enabled are at risk. All Salt versions through 3002 contain the flaw.
- Can I get the fix without Ubuntu Pro?
- No. On Ubuntu 14.04 LTS, 16.04 LTS and 18.04 LTS, the fixed
saltpackages are published only through Ubuntu Pro (ESM). The alternative is upgrading to a supported release.
Written with AI from the data on this page and checked against it automatically.
References
Other advisories
Data: CISA Known Exploited Vulnerabilities (public domain) · CVE Program records incl. CISA ADP enrichment · OSV.dev (CC BY 4.0) incl. Ubuntu and Debian security data · FIRST EPSS · endoflife.date. Updated automatically – facts last changed 2026-11-21. Always confirm with the vendor's or distribution's advisory before patching.