#VU50984 Command Injection in Salt


Published: 2021-02-28

Vulnerability identifier: #VU50984

Vulnerability risk: Medium

CVSSv3.1: 7.1 [CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N/E:U/RL:O/RC:C]

CVE-ID: CVE-2021-3148

CWE-ID: CWE-77

Exploitation vector: Network

Exploit availability: No

Vulnerable software:
Salt
Web applications / Remote management & hosting panels

Vendor: SaltStack

Description

The vulnerability allows a remote user to execute arbitrary commands within the application.

The vulnerability exists due to improper input validation, related to handling single and double quotes, within the salt.utils.thin.gen_thin() function in salt/utils/thin.py. A remote user can send a specially crafted HTTP request to the SaltAPI and execute arbitrary commands.

Mitigation
Install updates from vendor's website.

Vulnerable software versions

Salt: 3000 - 3000.7, 3001 - 3001.5, 3002 - 3002.4


External links
http://github.com/saltstack/salt/releases
http://saltproject.io/security_announcements/active-saltstack-cve-release-2021-feb-25/


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote authenticated user via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.


Latest bulletins with this vulnerability