Skip to main content
Mallory
CriticalExploited in the wildCISA KEVPublic exploitVulnerability

CVE-2020-11651: Unauthenticated Remote Command Execution in SaltStack Salt

Published Apr 30, 2020 · Updated 9 days ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 days2 mentions · peak 1 in a dayToday
CVSS9.8Critical · v3.1
EPSS98.3%100th percentile
CISA KEVYesAdded Nov 3, 2021
In the wildActivePer CISA KEV
Vendors
VMwareDebian ProjectOpensuseSaltstackCanonical
IdentifiersCVE-2020-11651CWE-306

CVE-2020-11651 is an authentication bypass vulnerability affecting SaltStack Salt releases before 2019.2.4 and the 3000 release series before 3000.2. The salt-master ClearFuncs class improperly exposes methods through unauthenticated cleartext protocol messages. An attacker can invoke _prep_auth_info() to retrieve authentication keys, including the root user key, or abuse _send_pub() to publish commands to connected Salt minions. These capabilities enable authentication bypass and arbitrary command execution within the managed infrastructure.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Remote unauthenticated attackers can disclose Salt authentication keys and execute arbitrary commands on connected minions, potentially with root privileges. Abuse of the disclosed credentials can also enable command execution in the Salt master's process context. Compromise of this centralized management plane can affect the confidentiality, integrity, and availability of multiple managed systems. Exploitation has been associated with cryptocurrency-mining malware deployments, including Kinsing and DreamBus.

Mitigation

If you can’t patch tonight, do this now.

Restrict network access to Salt master services to trusted management systems and authorized minions. Remove public Internet exposure and enforce firewall or network access controls around the Salt master ports, normally TCP 4505 and 4506, accounting for customized port configurations. Network restrictions are a compensating control, not a replacement for patching.

Remediation

Patch, then assume compromise.

Upgrade Salt to version 2019.2.4 or later in the 2019.2.x branch, or version 3000.2 or later in the 3000 branch. The fix introduces get_method() restrictions to prevent unauthorized exposure of methods through cleartext messages.

Public exploits

Exploits

9 exploits validated by Mallory's analysis. Hidden: 3 rejected by Mallory's analysis as not a working exploit; 1 not yet analyzed, such as Exploit-DB entries.

View more in app →
saltstack_salt_root_key.rbThis repository contains a single Metasploit auxiliary module: 'SaltStack Salt Master Server Root Key Disclosure'. The module targets SaltStack Salt Master servers vulnerable to CVE-2020-11651, specifically versions 2019.2.3 and earlier and 3000.1 and earlier. The exploit leverages unauthenticated access to the _prep_auth_info() method via the ZeroMQ request server (default TCP port 4506) to extract the root key used for administrative authentication. The module connects to the target Salt Master, sends a crafted ZeroMQ message, and parses the response to retrieve the root key. The result is stored as a credential in the Metasploit database. The exploit is operational and can be used to escalate privileges on affected Salt Master servers. The code is written in Ruby and is structured as a standard Metasploit module, with all logic contained in a single file.Disclosed Apr 30, 2020 · Framework: metasploit · ruby · networkWeaponizedsaltstack_salt_unauth_rce.rbThis repository contains a single Metasploit module (modules/exploits/linux/misc/saltstack_salt_unauth_rce.rb) that exploits an unauthenticated remote code execution vulnerability (CVE-2020-11651) in SaltStack Salt Master and Minion. The exploit leverages exposed ZeroMQ endpoints (typically on TCP port 4506) to invoke privileged methods without authentication, allowing arbitrary code execution as root on the master or selected minions. The module supports both Python and Unix command payloads, enabling delivery of Meterpreter sessions or reverse shells. It is highly weaponized, allowing attackers to easily customize payloads and target multiple affected products, including SaltStack Salt, VMware vRealize Operations Manager, and certain Cisco products. The exploit is operational and reliable, but may leave artifacts on disk and in logs. The repository is structured as a standard Metasploit module, with all logic contained in a single Ruby file.Disclosed Apr 30, 2020 · Framework: metasploit · ruby · networkWeaponizedcve-2020-11651This repository contains a Python proof-of-concept exploit for CVE-2020-11651, a critical authentication bypass vulnerability in SaltStack Salt masters. The main file, 'CVE-2020-11651.py', leverages the vulnerability to perform unauthenticated remote code execution (RCE) on the Salt master and/or all connected minions. The exploit works by connecting to the Salt master's ZeroMQ transport (default port 4506), retrieving the root key, and then using it to execute arbitrary shell commands either on the master or broadcast to all minions. The exploit can be used to fetch the root key, execute a command on the master, or send a command to all minions. The README provides usage instructions and example commands, including how to use netcat for reverse shells. The repository is operational and demonstrates real-world exploitation of the vulnerability, requiring only the Salt Python library and network access to the target. No detection or patching scripts are included; the focus is on exploitation.dozernz · Disclosed May 4, 2020 · python · networkOperationalSaltStack-ExpThis repository contains a Python exploit (exp.py) targeting SaltStack Salt Master servers vulnerable to CVE-2020-11651 and CVE-2020-11652. The exploit leverages unauthenticated access to the Salt Master ZeroMQ port (default 4506) to extract the root key and perform privileged operations. Capabilities include: - Remote code execution as root on the Salt Master or all minions (via arbitrary command execution) - Arbitrary file read from the Salt Master - Arbitrary file write (upload) to the Salt Master, with a default target of the root user's crontab - Reverse shell to an attacker-controlled host and port The exploit is operational and requires the attacker to specify the target Salt Master IP and port, as well as the desired action (command execution, file read/write, or reverse shell). The README provides usage examples for each capability. The code is self-contained and does not rely on external frameworks, but does require the Salt Python libraries to be installed. The main entry point is exp.py, which parses command-line arguments and executes the chosen attack vector. The exploit is effective against SaltStack Salt versions prior to 2019.2.4 and between 3000 and 3000.2, primarily on Linux platforms.bravery9 · Disclosed May 4, 2020 · python · networkOperationalCVE-2020-11651This repository is a proof-of-concept exploit for CVE-2020-11651, a critical authentication bypass vulnerability in SaltStack Salt Master. The main exploit is implemented in 'poc.py', a Python 3 script that uses the pyzmq and msgpack libraries to communicate directly with the Salt Master over its ZeroMQ (ZMQ) interface (default port 4506). The script provides several capabilities: - Retrieve the Salt Master's root key without authentication. - Execute arbitrary shell commands on all connected minions. - Read arbitrary files from the Salt Master filesystem. - Write arbitrary files to the Salt Master filesystem. The script is operated via command-line arguments, allowing the user to specify the target server, port, and desired action (key retrieval, command execution, file read/write). The exploit leverages the lack of authentication on certain internal commands exposed by the Salt Master, making it highly impactful. The repository contains only one code file ('poc.py'), a README with usage instructions, a LICENSE, and a .gitignore. No hardcoded IPs or domains are present; the target is specified at runtime. The exploit is operational and demonstrates real-world impact, but is not weaponized for mass exploitation.kevthehermit · Disclosed May 4, 2020 · python · networkOperationalCVE-2020-11651This repository contains a Python exploit script (CVE-2020-11651-11652-add_user.py) targeting SaltStack Salt master servers vulnerable to CVE-2020-11651 and CVE-2020-11652. The exploit leverages an authentication bypass and remote code execution flaw to connect to the Salt master (default port 4506) and, using unauthenticated commands, directly read and write to critical system files (/etc/passwd and /etc/shadow). This allows the attacker to add a new user with arbitrary credentials or replace the root user, effectively granting full system access. The script supports reading arbitrary files as well. The repository includes a README with usage instructions and a demonstration of successful exploitation. The exploit is operational, requiring only network access to a vulnerable Salt master and does not depend on any exploit framework.Drew-Alleman · Disclosed Mar 30, 2025 · python · networkOperationalCVE-2020-11651-PocThis repository is a small standalone Python exploit for SaltStack CVE-2020-11651 and CVE-2020-11652. It contains one code file (Poc.py) and a brief README noting it is an updated version of an existing PoC. The script is not part of a larger exploit framework. Structure and purpose: Poc.py is the sole operational component and serves as a command-line exploit tool. It initializes a Salt ReqChannel configured as a fake minion using ZeroMQ transport, targets a Salt master at a user-specified IP/port (default 127.0.0.1:4506), and attempts to retrieve the master root key by sending the unauthenticated _prep_auth_info request. If successful, it uses the recovered key to invoke privileged Salt wheel and runner functions. Main capabilities: (1) arbitrary file read using wheel/file_roots.read, including direct user-specified paths via --read; (2) arbitrary command execution without output using runner/salt.cmd with cmd.exec_code and embedded Python subprocess.call(..., shell=True); (3) command execution with output retrieval by redirecting stdout/stderr to a temporary file under /tmp and then reading that file back through file_roots.read; and (4) reverse shell delivery via --shell, preferring a Python socket-based reverse shell to /bin/bash and falling back to a netcat FIFO shell if Python is unavailable. Operational details: The exploit generates Salt job IDs from UTC timestamps, uses short timeouts, and relies on temporary files such as /tmp/out_<timestamp>, /tmp/pycheck, and /tmp/f on the target. Reverse shell mode requires the operator to supply --lhost and optionally --lport (default 4444). The code is functional and offensive rather than merely demonstrative, but payload customization is limited to command strings and listener parameters, so OPERATIONAL is the best fit rather than WEAPONIZED.s1lentf00thold · Disclosed Jun 23, 2026 · python · markdown · networkOperationalsalt-cve-2020-11651-pocThe repository contains five files: one standalone Python exploit, a README, a two-package requirements file, an MIT license, and Git ignore rules. No exploit framework is used. Despite the dependency-free description, the script requires pyzmq and msgpack; it avoids depending on the Salt Python library. salt_rce.py implements Salt's clear-message request transport directly using ZeroMQ and MessagePack. It first invokes _prep_auth_info and extracts the root key from the response. Its check mode stops after displaying that key, so it actively exercises the authentication bypass rather than merely fingerprinting a version. File-read mode calls wheel file_roots.read with multiple path representations and traversal depths, then deduplicates returned contents. Execution mode submits a timestamped runner job invoking salt.cmd and cmd.exec_code with a Python subprocess wrapper around the supplied command. The implementation supports key disclosure, arbitrary file reading, and command submission. Although its documentation also discusses arbitrary file writing, no dedicated file-write operation is implemented. Command execution is not independently confirmed: the script prints a dispatch message even if the transport times out or returns an error. Root execution is claimed and requested, but actual privileges depend on the Salt master process. There is no evidence of an unrelated malicious payload or a fixed exfiltration destination. Only the operator-selected TCP request endpoint is contacted by the code. Ports 4505 and 8000 and the external reference URLs occur only in documentation. Repository URL, git reference, and archive size were not supplied; their fields use empty or zero placeholders.codenamepetrel · Disclosed Nov 7, 2026 · python · networkOperationalCVE-2020-11651-pocThis repository contains a proof-of-concept exploit (exploit.py) for SaltStack Salt vulnerabilities CVE-2020-11651 and CVE-2020-11652. The exploit targets Salt master servers that have not been patched for these vulnerabilities. It leverages authentication bypass and directory traversal flaws to obtain the Salt master root key, read and write arbitrary files on the master, upload files (with path traversal), and execute arbitrary commands on the master and all connected minions. The exploit operates over the Salt master's default management port (4506/tcp) and requires the attacker to have network access to the target. The README.md provides detailed usage instructions and examples, including reading sensitive files (e.g., /etc/shadow), uploading files to privileged locations, and executing shell commands. The exploit is written in Python and requires the Salt Python library. The repository is structured simply, with a single exploit script and a comprehensive README. No detection or fake code is present; this is a functional exploit for the referenced CVEs.jasperla · Disclosed May 4, 2020 · python · markdown · networkPoC
Exposure surface

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
CanonicalUbuntu Linuxoperating_system
Debian ProjectDebian Linuxoperating_system
OpensuseOpensuse Leapoperating_system
SaltstackSaltapplication
VMwareApplication Remote Collectorapplication
FAQ

Frequently asked questions

Is CVE-2020-11651 exploited in the wild?
Yes. As of Nov 19, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Nov 3, 2021.
Is there a public exploit for CVE-2020-11651?
Yes. Mallory tracks 9 public exploits or proofs of concept for CVE-2020-11651, the earliest disclosed Apr 30, 2020.
Is there a patch for CVE-2020-11651?
Upgrade Salt to version 2019.2.4 or later in the 2019.2.x branch, or version 3000.2 or later in the 3000 branch. The fix introduces get_method() restrictions to prevent unauthorized exposure of methods through cleartext messages.
What products are affected by CVE-2020-11651?
Saltstack Salt, VMware Application Remote Collector, Debian Project Debian Linux, Opensuse Leap, and Canonical Ubuntu Linux.
How severe is CVE-2020-11651?
CVE-2020-11651 has a CVSS v3.1 score of 9.8 (Critical) and an EPSS score of 98.3% (100th percentile) as of Nov 19, 2026.
Activity feed

Recent activity

8 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
nuclei templates pull requestsNews · Nov 12, 2026Add CVE-2020-11651 - SaltStack Salt < 2019.2.4/3000.2 - Authentication Bypass Root Key Disclosure by ArjunSecurin · Pull Request #17799 · projectdiscovery/nuclei-templatesAn authentication bypass vulnerability in SaltStack Salt, identified in the content as affecting versions before 2019.2.4/3000.2. The demonstrated unauthenticated _prep_auth_info request exposes privileged authentication keys over TCP port 4506. The reference documents template development and successful local testing, not exploitation against real-world victims.Read more ↗malwaremustdie blogNews · Nov 11, 2026Malware Must Die!: MMD-071-2026 - Linux/KinsingBot a "bad-bad"-designed botnet a while ago.. until recent.One of two SaltStack Salt vulnerabilities identified as authentication bypass / remote code execution flaws exploited in other Kinsing campaigns. The timeline links their exploitation to Kinsing in May 2020.Read more ↗zscaler threat labzNews · Jan 1, 2026Malware Analysis of the DreamBus Botnet | Zscaler BlogAn authentication bypass in SaltStack that leads to full remote command execution as root, used by DreamBus for propagation.Read more ↗trendai security blogNews · Jan 1, 2026Coinminers Exploit SaltStack Vulnerabilities CVE-2020-11651 and CVE-2020-11652 | TrendAI (US)A high-severity authentication bypass in SaltStack Salt affecting versions before 2019.2.4 and the 3000 release series before 3000.2. Improper exposure of ClearFuncs methods allows unauthenticated remote attackers to retrieve the root key or queue messages that cause minions to execute arbitrary commands as root. Patches restrict which methods are exposed through the transport layer.Read more ↗
+3 more in the timeline. Sign up to see them
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malware15Malware families linked to this CVE, with evidence and IOCs.
Detection signatures3YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activityCommunity discussion across Reddit, Mastodon, and other social sources.