Join our Newsletter — 33% off our NHI Course
Home› Glossary› Threats, Abuse & Incident Response› CVE-2020-16846 (SaltStack Salt Shell Injection)
Threats, Abuse & Incident Response

CVE-2020-16846 (SaltStack Salt Shell Injection)

← Back to Glossary
By NHI Mgmt Group Updated October 17, 2026 Domain: Threats, Abuse & Incident Response

CVE-2020-16846 is a shell injection vulnerability in SaltStack Salt. CISA added it to the Known Exploited Vulnerabilities catalogue on 3 November 2021, which means attackers have used it in real attacks. 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.

What Makes This Vulnerability Dangerous

This issue matters because the vulnerable component is a remote management interface, so successful injection can turn ordinary network reachability into code execution. In practice, that means the exposed service boundary, not just the host itself, becomes the entry point for compromise.

Shell injection is especially serious in administration tooling because the attacker does not need to break the underlying operating system first. A flaw of this kind can let an unauthenticated requester manipulate commands, pivot into automation workflows, and use trusted management paths as an execution channel.

How Exposure Is Typically Assessed

Exposure begins with knowing where SaltStack Salt is deployed, which hosts expose its API, and whether those services are reachable from networks the organisation does not fully trust. Asset inventory is the first control point, because untracked management endpoints are easy to miss.

Vendor advisories and the CISA KEV catalogue are the authoritative places to confirm whether a specific deployment is affected and whether the issue is being actively exploited. For vulnerability records and product context, readers should also check the NIST National Vulnerability Database and the CVE Program.

Remediation and Compensating Controls

The right fix is to apply the vendor’s remediation guidance as soon as possible, because this is not a hardening issue that can be fully solved by configuration alone. When patching is delayed, reduce exposure by restricting who can reach the API, placing management interfaces behind tighter network controls, and removing unnecessary remote access paths.

Where remediation has to be staged, treat the service as a high-value administrative plane. That usually means isolating it from general user traffic, monitoring for abnormal requests, and limiting which administrators or automation systems can interact with it while the vulnerable state remains in place.

Detection and Post-Exploitation Review

Because the vulnerability can be used to execute commands, defenders should assume that exploitation may leave evidence in logs, process activity, and unexpected changes to managed systems. Review authentication records, API access logs, and any command execution traces around the exposure window.

After patching, look for secondary compromise rather than stopping at the vulnerability fix itself. If an attacker achieved code execution, they may have created persistence, altered configurations, planted scripts, or reused the management channel for follow-on activity, so the response should include validation of the affected systems and surrounding administrative infrastructure.

Risk and Threat Considerations

This vulnerability creates a direct path from network access to command execution, which is why it is so attractive to attackers. Once abused, the exposed management service can become a foothold for persistence, lateral movement, and broader environment takeover.

Failure mechanism: The attacker sends crafted input to the Salt API, the input reaches a shell context, and the service executes attacker-controlled commands with the privileges of the affected process or automation path.

Impact: Exposure can extend beyond the API host itself, because compromise of a management plane often gives the attacker leverage over many managed systems, credentials, or orchestration workflows.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

NIST SP 800-53 Rev 5 and CIS Controls v8 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
NIST SP 800-53 Rev 5SI-10 — Information Input ValidationShell injection is an input-handling failure that SI-10 directly addresses.
AC-4 — Information Flow EnforcementThe exploit depends on network reachability to a management API, which AC-4 helps constrain.
RA-5 — Vulnerability Monitoring and ScanningThe term is a KEV-listed vulnerability, so RA-5 supports ongoing exposure discovery and tracking.
Recommendation — Validate all API input to block command injection paths before data reaches a shell context. Restrict management-plane traffic so only approved sources can reach the Salt API. Continuously scan for exposed Salt services and verify remediation status against your asset inventory.
CIS Controls v8CIS-4 — Secure Configuration of Enterprise Assets and SoftwareHardening and reducing exposed management services are core to this vulnerability's remediation.
Recommendation — Harden and isolate the Salt deployment so the management API is not broadly reachable.

Practitioner Guidance

Why practitioners should care: Management APIs are often treated as trusted internal services, but that trust is exactly what makes injection flaws dangerous. If a control plane is reachable from broad network segments, a single exploit can affect far more than one server.

What to watch for: Prioritise review of internet exposure, unexpected use of the API, and any signs that automation accounts or management sessions were used outside normal patterns. For broader vulnerability triage and prioritisation, use the Vulnerability Management Guide to align exposure review with remediation timing and verification discipline.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on October 17, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org