OS Command Injection in Salt - CVE-2019-17361
Published: May 7, 2020
Vulnerability details
The vulnerability allows a remote attacker to execute arbitrary shell commands on the target system.
The vulnerability exists due to improper input validation the salt-api NET API with the ssh client enabled. A remote unauthenticated attacker with network access to the API endpoint can pass specially crafted data to the application and execute arbitrary OS commands on the salt-api host.
Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.
Affected software
Arch Linux
Ubuntu
salt (Alpine package)
salt (Debian package)
salt-api (Ubuntu package)
salt-common (Ubuntu package)
salt-master (Ubuntu package)
salt-minion (Ubuntu package)
How to mitigate CVE-2019-17361
salt (Alpine package) - update to 3000.1-r2
salt (Debian package) - addressed in versions 2016.11.2+ds-1+deb9u3, 2018.3.4+dfsg1-6+deb10u1
salt-api (Ubuntu package) - addressed in versions 2015.8.8+ds-1ubuntu0.1, 2017.7.4+dfsg1-1ubuntu18.04.2
salt-common (Ubuntu package) - addressed in versions 2015.8.8+ds-1ubuntu0.1, 2017.7.4+dfsg1-1ubuntu18.04.2
salt-master (Ubuntu package) - addressed in versions 2015.8.8+ds-1ubuntu0.1, 2017.7.4+dfsg1-1ubuntu18.04.2
salt-minion (Ubuntu package) - addressed in versions 2015.8.8+ds-1ubuntu0.1, 2017.7.4+dfsg1-1ubuntu18.04.2