SaltStack Salt rest_cherrypy ssh_remote_port_forwards Command Injection Remote Code Execution Vulnerability
Vulnerability Details
This vulnerability allows remote attackers to execute arbitrary code on affected installations of SaltStack Salt. Authentication is not required to exploit this vulnerability.
The specific flaw exists within the rest_cherrypy module. When parsing the ssh_remote_port_forwards parameter, the process does not properly validate a user-supplied string before using it to execute a system call. An attacker can leverage this vulnerability to execute code in the context of the salt-api process.
Additional Details
SaltStack has issued an update to correct this vulnerability. More details can be found at:
https://www.saltstack.com/blog/on-november-3-2020-saltstack-publicly-disclosed-three-new-cves/
Disclosure Timeline
- 2020-06-12 - Vulnerability reported to vendor
- 2020-11-24 - Coordinated public release of advisory
Credit
KPC of Trend Micro Zero Day Initiative