In SaltStack Salt through 2019.2.0, the salt-api NET API with the ssh client enabled is vulnerable to command injection. This allows an unauthenticated attacker with network access to the API endpoint to execute arbitrary code on the salt-api host.
The product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component.
Name | Vendor | Start Version | End Version |
---|---|---|---|
Salt | Saltstack | * | 2019.2.0 (including) |
Salt | Ubuntu | bionic | * |
Salt | Ubuntu | disco | * |
Salt | Ubuntu | eoan | * |
Salt | Ubuntu | esm-apps/bionic | * |
Salt | Ubuntu | esm-apps/xenial | * |
Salt | Ubuntu | esm-infra-legacy/trusty | * |
Salt | Ubuntu | trusty | * |
Salt | Ubuntu | trusty/esm | * |
Salt | Ubuntu | xenial | * |
Command injection vulnerabilities typically occur when:
Many protocols and products have their own custom command language. While OS or shell command strings are frequently discovered and targeted, developers may not realize that these other command languages might also be vulnerable to attacks. Command injection is a common problem with wrapper programs.