OS Command Injection in Salt - CVE-2019-17361

 

OS Command Injection in Salt - CVE-2019-17361

Published: May 7, 2020


Vulnerability identifier: #VU27599
CSH Severity: High
CVSS v4: 9.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2019-17361
CWE-ID: CWE-78
Exploitation vector: Remote access
Exploit availability: No public exploit available

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

Salt
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

Install updates from vendor's website.

Salt - update to 2019.2.3
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

External References

Related Security Bulletins