Skip to main content
Mallory
MediumExploited in the wildCISA KEVPublic exploitVulnerability

CVE-2020-11652: Directory Traversal in SaltStack Salt Master

Published Apr 30, 2020 · Updated 2 days ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 days4 mentions · peak 2 in a dayToday
CVSS6.5Medium · v3.1
EPSS98.1%100th percentile
CISA KEVYesAdded Nov 3, 2021
In the wildActivePer CISA KEV
Vendors
VMwareDebian ProjectOpensuseSaltstackCanonicalBlackberry
IdentifiersCVE-2020-11652CWE-22 · Improper Limitation of a Pathname…

CVE-2020-11652 is a directory traversal vulnerability in SaltStack Salt releases before 2019.2.4 and in the 3000 series before 3000.2. Insufficient path sanitization in Salt master functionality allows authenticated users to escape intended filesystem boundaries. Affected functionality includes get_token() in salt.tokens.localfs and wheel file-roots operations, including file_roots.read. The token-handling method accepts traversal elements in a token parameter used to locate a file, while vulnerable wheel operations fail to adequately constrain paths to their configured roots. Successful exploitation permits unauthorized filesystem access under the Salt master process's permissions. Chaining this vulnerability with the separate authentication bypass CVE-2020-11651 enables attacks without prior credentials.

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.

Authenticated attackers can access files outside authorized directories on the Salt master, exposing sensitive configuration, credentials, and other data readable by the service account. Vulnerable wheel filesystem operations also create risks to filesystem integrity. When combined with CVE-2020-11651, exploitation can lead to unauthenticated remote code execution and compromise of the master and managed minions, potentially with root privileges. The vulnerability pair has been exploited in cryptocurrency-mining campaigns involving Kinsing and MALXMR.

Mitigation

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

Restrict access to Salt master services to authorized minions and trusted administrative systems using firewall rules or network segmentation. Remove public Internet access to the master ports, commonly TCP 4505 and 4506, accounting for any customized port configuration. Network restrictions reduce exposure but do not replace patching or prevent exploitation by an authenticated attacker with permitted access.

Remediation

Patch, then assume compromise.

Upgrade Salt to version 2019.2.4 or later in the 2019.2 branch, or version 3000.2 or later in the 3000 branch. The fixes add filesystem path validation, including resolution of filesystem links and checks that resolved paths remain beneath the intended root. Ensure the accompanying fixes for CVE-2020-11651 are also installed to prevent authentication-bypass chaining.

Public exploits

Exploits

7 exploits validated by Mallory's analysis. Hidden: 2 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 · networkWeaponizedSaltStack-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-11652This repository contains a Python exploit script (CVE-2020-11652.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 transport (default port 4506) to extract the root key, which is then used to perform privileged operations. The script supports multiple attack capabilities: reading arbitrary files from the server, uploading files (potentially overwriting critical files like crontabs), executing arbitrary shell commands as root on the master or all minions, and spawning a reverse shell to an attacker-controlled host. The exploit is operational and requires the attacker to specify the target's IP, port, and desired action via command-line arguments. The README provides usage examples for each capability. No detection or fake code is present; the script is a functional exploit for the specified SaltStack vulnerabilities.Al1ex · Disclosed Dec 25, 2020 · python · networkOperationalCVE-2020-11652-POCThis repository contains a Python proof-of-concept exploit for SaltStack Salt Master vulnerabilities CVE-2020-11651 and CVE-2020-11652. The main file, 'CVE-2020-11652-fix.py', allows an attacker to connect to a vulnerable Salt Master server over the network (default port 4506), extract the root key, and perform a range of post-exploitation actions. These include reading arbitrary files, uploading files (with a default target of the root user's crontab for persistence), executing arbitrary shell commands on the master or all minions, and spawning a reverse shell to a remote host. The exploit leverages unauthenticated access to internal SaltStack commands and is effective against unpatched Salt Master versions prior to 2019.2.4 or between 3000 and 3000.2. The repository also includes a README with usage instructions and references to the original exploit sources. No detection or fake code is present; this is a functional exploit with operational-level maturity.limon768 · Disclosed Jan 17, 2024 · python · markdown · 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 · networkOperational
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
BlackberryWorkspaces Serverapplication
CanonicalUbuntu Linuxoperating_system
Debian ProjectDebian Linuxoperating_system
OpensuseOpensuse Leapoperating_system
SaltstackSaltapplication
VMwareApplication Remote Collectorapplication
FAQ

Frequently asked questions

Is CVE-2020-11652 exploited in the wild?
Yes. As of Nov 26, 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-11652?
Yes. Mallory tracks 7 public exploits or proofs of concept for CVE-2020-11652, the earliest disclosed Apr 30, 2020.
Is there a patch for CVE-2020-11652?
Upgrade Salt to version 2019.2.4 or later in the 2019.2 branch, or version 3000.2 or later in the 3000 branch. The fixes add filesystem path validation, including resolution of filesystem links and checks that resolved paths remain beneath the intended root.
What products are affected by CVE-2020-11652?
Saltstack Salt, VMware Application Remote Collector, Debian Project Debian Linux, Opensuse Leap, Canonical Ubuntu Linux, and 1 more.
How severe is CVE-2020-11652?
CVE-2020-11652 has a CVSS v3.1 score of 6.5 (Medium) and an EPSS score of 98.1% (100th percentile) as of Nov 26, 2026.
Activity feed

Recent activity

10 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 23, 2026Add CVE-2020-11652 - SaltStack Salt < 2019.2.4/3000.2 - Directory Traversal Arbitrary File Read by ArjunSecurin · Pull Request #18047 · projectdiscovery/nuclei-templatesA directory traversal vulnerability in SaltStack Salt versions before 2019.2.4/3000.2 that permits arbitrary file reads through file_roots functionality. The pull request adds a Nuclei detection template and demonstrates successful retrieval of /etc/passwd from a local vulnerable instance using wheel.file_roots.read. The supplied request includes a leaked authentication key. These local tests do not establish exploitation in the wild or active scanning campaigns.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 collectively as authentication bypass / remote code execution flaws exploited in other Kinsing campaigns. The content does not distinguish the individual mechanisms.Read more ↗trendai security blogNews · Jan 1, 2026Coinminers Exploit SaltStack Vulnerabilities CVE-2020-11651 and CVE-2020-11652 | TrendAI (US)A high-severity directory traversal vulnerability in SaltStack Salt affecting versions before 2019.2.4 and the 3000 release series before 3000.2. Insufficient path sanitization allows access outside intended directories. The report highlights traversal through the get_token() filename parameter, with file reads constrained by Salt deserialization requirements. Patches introduce filesystem-link resolution and path validation using _realpath() and clean_path().Read more ↗countercraftNews · Nov 16, 2021CVE-2021-41773 Actively Exploited by H2Miner | CounterCraftA second SaltStack vulnerability referenced through the abbreviated notation 'CVE-2020-11651(2)'. The content collectively describes these vulnerabilities as enabling remote code execution and being exploited by H2Miner/Kinsing operators, without distinguishing their individual mechanisms.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 malware13Malware families linked to this CVE, with evidence and IOCs.
Detection signatures1YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity2Community discussion across Reddit, Mastodon, and other social sources.