cve.bz

CVE-2020-16846 SaltStack Salt Shell Injection Vulnerability

9.8 criticalKEVExploitEPSS 99.5%Fix available

Critical (9.8) in SaltStack Salt. In CISA KEV since 2021-11-03. EPSS 99.5% estimated probability of exploitation activity in the next 30 days. Fixed in salt 2015.8.10, 2015.8.13, 2016.11.10.

On this page
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.

Severity

CVSS 3.1

9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
99.5% (unchanged from 99.5% a week ago; 99.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 100th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CISA KEV
listed 2021-11-03, due 2022-05-03
CISA's assessment (SSVC)
Exploitation: active · Automatable: yes · Technical impact: total, assessed 2025-02-07. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-78 Improper Neutralization of Special Elements used in an OS Command (OS Command Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2020-16846 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2020-16846?via=ask-ai-copy and https://cve.bz/cve/CVE-2020-16846?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2020-16846 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
saltstack:saltbefore 2015.8.10
saltstack:saltfrom 2015.8.11 before 2015.8.13
saltstack:saltfrom 2016.3.0 before 2016.3.4
saltstack:saltfrom 2016.3.5 before 2016.3.6
saltstack:saltfrom 2016.3.7 before 2016.3.8
saltstack:saltfrom 2016.11.0 before 2016.11.3
saltstack:saltfrom 2016.11.4 before 2016.11.6
saltstack:saltfrom 2016.11.7 before 2016.11.10
saltstack:saltfrom 2017.5.0 before 2017.7.4
saltstack:saltfrom 2017.7.5 before 2017.7.8
saltstack:saltfrom 2018.2.0 before 2018.3.5
saltstack:saltfrom 2019.2.0 before 2019.2.5
saltstack:saltfrom 3000.0 before 3000.3
saltstack:salt3001
saltstack:salt3002
debian:debian_linux9.0
debian:debian_linux10.0
fedoraproject:fedora31
opensuse:leap15.1

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-qr38-h96j-2j3wPyPIsalt<2015.8.132015.8.13
GHSA-qr38-h96j-2j3wPyPIsalt>=2016.3.0 <2016.3.82016.3.8
GHSA-qr38-h96j-2j3wPyPIsalt>=2016.11.0 <2016.11.102016.11.10
GHSA-qr38-h96j-2j3wPyPIsalt>=2017.5.0 <2017.7.82017.7.8
GHSA-qr38-h96j-2j3wPyPIsalt>=2018.2.0 <2018.3.52018.3.5
GHSA-qr38-h96j-2j3wPyPIsalt>=2019.2.0 <2019.2.62019.2.6
GHSA-qr38-h96j-2j3wPyPIsalt>=3000.0 <3000.43000.4
GHSA-qr38-h96j-2j3wPyPIsalt>=3001 <3001.23001.2
GHSA-qr38-h96j-2j3wPyPIsalt>=3002 <3002.13002.1
PYSEC-2020-104PyPIsalt<2015.8.10
>=2015.8.11 <2015.8.13
>=2016.3.0 <2016.3.4
>=2016.3.5 <2016.3.6
>=2016.3.7 <2016.3.8
>=2016.11.0 <2016.11.3
>=2016.11.4 <2016.11.6
>=2016.11.7 <2016.11.10
>=2017.7.0 <2017.7.4
>=2017.7.5 <2017.7.8
>=2018.3.0rc1 <2018.3.5
>=2019.2.0 <2019.2.5
>=3000 <3000.3
2015.8.10, 2015.8.13, 2016.3.4, 2016.3.6, 2016.3.8, 2016.11.3, 2016.11.6, 2016.11.10, 2017.7.4, 2017.7.8, 2018.3.5, 2019.2.5, 3000.3

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian9salt2016.11.2+ds-1+deb9u6DLA-2480-1
Debian10salt2018.3.4+dfsg1-6+deb10u2DSA-4837-1
UbuntuPro:14.04:LTSsalt0.17.5+ds-1ubuntu0.1~esm4UBUNTU-CVE-2020-16846 USN-7181-1
UbuntuPro:16.04:LTSsalt2015.8.8+ds-1ubuntu0.1+esm2UBUNTU-CVE-2020-16846 USN-6948-1
UbuntuPro:18.04:LTSsalt2017.7.4+dfsg1-1ubuntu18.04.2+esm1UBUNTU-CVE-2020-16846 USN-6948-1
SUSEEnterprise Storage 5salt2016.11.4-48.13.1SUSE-SU-2020:3171-1
SUSELinux Enterprise High Performance Computing 15-ESPOS, Linux Enterprise High Performance Computing 15-LTSS, Linux Enterprise Server 15-LTSS and 1 moresalt3000-5.91.1SUSE-SU-2020:3244-1
SUSELinux Enterprise Module for Advanced Systems Management 12, Linux Enterprise Point of Sale 12 SP2, Manager Client Tools 12 and 2 moresalt3000-46.114.1SUSE-SU-2020:3245-1
SUSELinux Enterprise Module for Basesystem 15 SP1, Linux Enterprise Module for Python 2 15 SP1, Linux Enterprise Module for Server Applications 15 SP1salt3000-6.51.1SUSE-SU-2020:3243-1
SUSELinux Enterprise Module for Basesystem 15 SP2, Linux Enterprise Module for Python 2 15 SP2, Linux Enterprise Module for Server Applications 15 SP2salt3000-4.20.1SUSE-SU-2020:3155-1
SUSELinux Enterprise Server 11 SP3-CLIENT-TOOLS, Linux Enterprise Server 11 SP4-CLIENT-TOOLScobbler2.2.2-0.68.12.1SUSE-SU-2020:14538-1
SUSELinux Enterprise Server 11 SP3-CLIENT-TOOLS, Linux Enterprise Server 11 SP4-CLIENT-TOOLSmgr-daemon4.1.3-5.20.1SUSE-SU-2020:14538-1
SUSELinux Enterprise Server 11 SP3-CLIENT-TOOLS, Linux Enterprise Server 11 SP4-CLIENT-TOOLSsalt2016.11.10-43.63.1SUSE-SU-2020:14538-1
SUSELinux Enterprise Server 11 SP3-CLIENT-TOOLS, Linux Enterprise Server 11 SP4-CLIENT-TOOLSspacecmd4.1.8-18.72.1SUSE-SU-2020:14538-1
SUSELinux Enterprise Server 11 SP3-CLIENT-TOOLS, Linux Enterprise Server 11 SP4-CLIENT-TOOLSspacewalk-client-tools4.1.7-27.38.1SUSE-SU-2020:14538-1
SUSEManager Proxy Module 4.1mgr-daemon4.1.3-2.6.3SUSE-SU-2020:3235-1
SUSEManager Proxy Module 4.1, Manager Server Module 4.1spacecmd4.1.8-4.9.2SUSE-SU-2020:3235-1
25 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 15.1salt3000-lp151.5.30.1openSUSE-SU-2020:1868-1
openSUSELeap 15.2salt3000-lp152.3.15.1openSUSE-SU-2020:1833-1
Alpinev3.13, v3.14, v3.15 and 9 moresalt3002-r1ALPINE-CVE-2020-16846

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Important.

Red Hat's statement

Red Hat Ceph Storage 2 shipped salt for the usage of Red Hat Storage Console 2 (RHSCON-2), which required salt to administrate ceph nodes. RHSCON-2 has reached End Of Life, hence salt is no longer used and supported. Therefore, the salt package provided by Red Hat Ceph Storage 2 has been marked as 'will not fix'.

Red Hat's mitigation

Red Hat has investigated whether a possible mitigation exists for this issue, and has not been able to identify a practical example. Please update as soon as possible.

ProductPackageStateAdvisory
Red Hat Ceph Storage 2saltWill not fix

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2020-16846.

Public exploits

Detection rules

Ways to detect this CVE, not exploit code: the nuclei template that checks a system for it, and the Suricata and Snort rules that name it. A rule set may ship a rule turned off, so check yours by its sid.

  • Nuclei template SaltStack <=3002 - Shell Injection
  • Emerging Threats Open ET EXPLOIT SaltStack Salt Exploitation Inbound M2 (CVE-2020-16846) sid 2060514
  • Emerging Threats Open ET EXPLOIT SaltStack Salt Exploitation Inbound M3 (CVE-2020-16846) sid 2060515
  • Emerging Threats Open ET EXPLOIT SaltStack Salt Exploitation Inbound M4 (CVE-2020-16846) sid 2060516
  • Emerging Threats Open ET EXPLOIT SaltStack Salt Exploitation Inbound M1 (CVE-2020-16846) sid 2031495

Attack patterns (CAPEC)

  • CAPEC-6 Argument Injection Likelihood: High · Severity: High
  • CAPEC-15 Command Delimiters Likelihood: High · Severity: High
  • CAPEC-43 Exploiting Multiple Input Interpretation Layers Likelihood: Medium · Severity: High
  • CAPEC-88 OS Command Injection Likelihood: High · Severity: High
  • CAPEC-108 Command Line Execution through SQL Injection Likelihood: Low · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON