{"id":"MSF-linux--http--saltstack_salt_api_cmd_exec","name":"SaltStack Salt REST API Arbitrary Command Execution","description":"This module exploits an authentication bypass and command injection in SaltStack Salt's REST API to execute commands as the root user. The following versions have received a patch: 2015.8.10, 2015.8.13, 2016.3.4, 2016.3.6, 2016.3.8, 2016.11.3, 2016.11.6, 2016.11.10, 2017.7.4, 2017.7.8, 2018.3.5, 2019.2.5, 2019.2.6, 3000.3, 3000.4, 3001.1, 3001.2, and 3002. Tested against 2019.2.3 from Vulhub and 3002 on Ubuntu 20.04.1.","cves":["CVE-2020-16846","CVE-2020-25592"],"author":"KPC, wvu","published":"2020-11-03","platform":"Linux,Unix","type":"remote","language":"Ruby","source":"metasploit","sourceUrl":"https://github.com/rapid7/metasploit-framework/blob/251027d26210b6d92820dc33a08173662c639905/modules/exploits/linux/http/saltstack_salt_api_cmd_exec.rb","path":"modules/exploits/linux/http/saltstack_salt_api_cmd_exec.rb","revision":"251027d26210b6d92820dc33a08173662c639905","filename":"saltstack_salt_api_cmd_exec.rb","vulnerabilities":[{"id":"CVE-2020-16846","state":"PUBLISHED","title":null,"titleSource":null,"description":"An issue was discovered in SaltStack Salt through 3002. Sending crafted web requests to the Salt API, with the SSH client enabled, can result in shell injection.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2020-16846","cvss":{"version":"3.1","baseScore":9.8,"severity":"critical","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"CISA-ADP","sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2020-16846"},"updatedAt":"2025-10-21T23:35:33.124Z","retrievedAt":"2026-11-27T03:48:32.290Z","stale":false,"error":null},{"id":"CVE-2020-25592","state":"PUBLISHED","title":null,"titleSource":null,"description":"In SaltStack Salt through 3002, salt-netapi improperly validates eauth credentials and tokens. A user can bypass authentication and invoke Salt SSH.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2020-25592","cvss":{"version":"3.1","baseScore":9.8,"severity":"critical","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2020-25592"},"updatedAt":"2024-08-04T15:33:05.711Z","retrievedAt":"2026-11-27T07:32:51.607Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/MSF-linux--http--saltstack_salt_api_cmd_exec.png?v=2","url":"https://exploitbin.com/exploits/MSF-linux--http--saltstack_salt_api_cmd_exec","downloadUrl":"https://exploitbin.com/api/v1/exploits/MSF-linux--http--saltstack_salt_api_cmd_exec/download","codeUrl":"https://exploitbin.com/api/v1/exploits/MSF-linux--http--saltstack_salt_api_cmd_exec/code","licenseUrl":"https://exploitbin.com/sources#metasploit"}