In manager.c in ss-manager in shadowsocks-libev 3.1.0, improper parsing allows command injection via shell metacharacters in a JSON configuration request received via 127.0.0.1 UDP traffic, related to the add_server, build_config, and construct_command_line functions.
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
Name | Vendor | Start Version | End Version |
---|---|---|---|
Shadowsocks-libev | Shadowsocks | 1.3 (including) | 1.3 (including) |
Shadowsocks-libev | Shadowsocks | 1.3.2 (including) | 1.3.2 (including) |
Shadowsocks-libev | Shadowsocks | 1.4.0 (including) | 1.4.0 (including) |
Shadowsocks-libev | Shadowsocks | 1.4.1 (including) | 1.4.1 (including) |
Shadowsocks-libev | Shadowsocks | 1.4.2 (including) | 1.4.2 (including) |
Shadowsocks-libev | Shadowsocks | 1.4.3 (including) | 1.4.3 (including) |
Shadowsocks-libev | Shadowsocks | 1.4.4 (including) | 1.4.4 (including) |
Shadowsocks-libev | Shadowsocks | 1.4.5 (including) | 1.4.5 (including) |
Shadowsocks-libev | Shadowsocks | 1.4.6 (including) | 1.4.6 (including) |
Shadowsocks-libev | Shadowsocks | 1.4.7 (including) | 1.4.7 (including) |
Shadowsocks-libev | Shadowsocks | 1.4.8 (including) | 1.4.8 (including) |
Shadowsocks-libev | Shadowsocks | 1.5.0 (including) | 1.5.0 (including) |
Shadowsocks-libev | Shadowsocks | 1.5.1 (including) | 1.5.1 (including) |
Shadowsocks-libev | Shadowsocks | 1.5.2 (including) | 1.5.2 (including) |
Shadowsocks-libev | Shadowsocks | 1.5.3 (including) | 1.5.3 (including) |
Shadowsocks-libev | Shadowsocks | 1.6.1 (including) | 1.6.1 (including) |
Shadowsocks-libev | Shadowsocks | 1.6.2 (including) | 1.6.2 (including) |
Shadowsocks-libev | Shadowsocks | 1.6.3 (including) | 1.6.3 (including) |
Shadowsocks-libev | Shadowsocks | 1.6.4 (including) | 1.6.4 (including) |
Shadowsocks-libev | Shadowsocks | 2.0.1 (including) | 2.0.1 (including) |
Shadowsocks-libev | Shadowsocks | 2.0.2 (including) | 2.0.2 (including) |
Shadowsocks-libev | Shadowsocks | 2.0.3 (including) | 2.0.3 (including) |
Shadowsocks-libev | Shadowsocks | 2.0.4 (including) | 2.0.4 (including) |
Shadowsocks-libev | Shadowsocks | 2.0.5 (including) | 2.0.5 (including) |
Shadowsocks-libev | Shadowsocks | 2.0.6 (including) | 2.0.6 (including) |
Shadowsocks-libev | Shadowsocks | 2.0.7 (including) | 2.0.7 (including) |
Shadowsocks-libev | Shadowsocks | 2.0.8 (including) | 2.0.8 (including) |
Shadowsocks-libev | Shadowsocks | 2.1.0 (including) | 2.1.0 (including) |
Shadowsocks-libev | Shadowsocks | 2.1.1 (including) | 2.1.1 (including) |
Shadowsocks-libev | Shadowsocks | 2.1.2 (including) | 2.1.2 (including) |
Shadowsocks-libev | Shadowsocks | 2.1.3 (including) | 2.1.3 (including) |
Shadowsocks-libev | Shadowsocks | 2.1.4 (including) | 2.1.4 (including) |
Shadowsocks-libev | Shadowsocks | 2.2.0 (including) | 2.2.0 (including) |
Shadowsocks-libev | Shadowsocks | 2.2.1 (including) | 2.2.1 (including) |
Shadowsocks-libev | Shadowsocks | 2.2.2 (including) | 2.2.2 (including) |
Shadowsocks-libev | Shadowsocks | 2.2.3 (including) | 2.2.3 (including) |
Shadowsocks-libev | Shadowsocks | 2.3.0 (including) | 2.3.0 (including) |
Shadowsocks-libev | Shadowsocks | 2.3.1 (including) | 2.3.1 (including) |
Shadowsocks-libev | Shadowsocks | 2.3.2 (including) | 2.3.2 (including) |
Shadowsocks-libev | Shadowsocks | 2.3.3 (including) | 2.3.3 (including) |
Shadowsocks-libev | Shadowsocks | 2.4.0 (including) | 2.4.0 (including) |
Shadowsocks-libev | Shadowsocks | 2.4.1 (including) | 2.4.1 (including) |
Shadowsocks-libev | Shadowsocks | 2.4.2 (including) | 2.4.2 (including) |
Shadowsocks-libev | Shadowsocks | 2.4.3 (including) | 2.4.3 (including) |
Shadowsocks-libev | Shadowsocks | 2.4.4 (including) | 2.4.4 (including) |
Shadowsocks-libev | Shadowsocks | 2.4.5 (including) | 2.4.5 (including) |
Shadowsocks-libev | Shadowsocks | 2.4.6 (including) | 2.4.6 (including) |
Shadowsocks-libev | Shadowsocks | 2.4.7 (including) | 2.4.7 (including) |
Shadowsocks-libev | Shadowsocks | 2.4.8 (including) | 2.4.8 (including) |
Shadowsocks-libev | Shadowsocks | 2.5.0 (including) | 2.5.0 (including) |
Shadowsocks-libev | Shadowsocks | 2.5.1 (including) | 2.5.1 (including) |
Shadowsocks-libev | Shadowsocks | 2.5.2 (including) | 2.5.2 (including) |
Shadowsocks-libev | Shadowsocks | 2.5.3 (including) | 2.5.3 (including) |
Shadowsocks-libev | Shadowsocks | 2.5.4 (including) | 2.5.4 (including) |
Shadowsocks-libev | Shadowsocks | 2.5.5 (including) | 2.5.5 (including) |
Shadowsocks-libev | Shadowsocks | 2.5.6 (including) | 2.5.6 (including) |
Shadowsocks-libev | Shadowsocks | 2.6.0 (including) | 2.6.0 (including) |
Shadowsocks-libev | Shadowsocks | 2.6.1 (including) | 2.6.1 (including) |
Shadowsocks-libev | Shadowsocks | 2.6.2 (including) | 2.6.2 (including) |
Shadowsocks-libev | Shadowsocks | 2.6.3 (including) | 2.6.3 (including) |
Shadowsocks-libev | Shadowsocks | 3.0.0 (including) | 3.0.0 (including) |
Shadowsocks-libev | Shadowsocks | 3.0.1 (including) | 3.0.1 (including) |
Shadowsocks-libev | Shadowsocks | 3.0.2 (including) | 3.0.2 (including) |
Shadowsocks-libev | Shadowsocks | 3.0.3 (including) | 3.0.3 (including) |
Shadowsocks-libev | Shadowsocks | 3.0.4 (including) | 3.0.4 (including) |
Shadowsocks-libev | Shadowsocks | 3.0.5 (including) | 3.0.5 (including) |
Shadowsocks-libev | Shadowsocks | 3.0.6 (including) | 3.0.6 (including) |
Shadowsocks-libev | Shadowsocks | 3.0.7 (including) | 3.0.7 (including) |
Shadowsocks-libev | Shadowsocks | 3.0.8 (including) | 3.0.8 (including) |
Shadowsocks-libev | Shadowsocks | 3.1.0 (including) | 3.1.0 (including) |
Shadowsocks-libev | Ubuntu | artful | * |
Shadowsocks-libev | Ubuntu | upstream | * |
Shadowsocks-libev | Ubuntu | zesty | * |
This could allow attackers to execute unexpected, dangerous commands directly on the operating system. This weakness can lead to a vulnerability in environments in which the attacker does not have direct access to the operating system, such as in web applications. Alternately, if the weakness occurs in a privileged program, it could allow the attacker to specify commands that normally would not be accessible, or to call alternate commands with privileges that the attacker does not have. The problem is exacerbated if the compromised process does not follow the principle of least privilege, because the attacker-controlled commands may run with special system privileges that increases the amount of damage. There are at least two subtypes of OS command injection:
From a weakness standpoint, these variants represent distinct programmer errors. In the first variant, the programmer clearly intends that input from untrusted parties will be part of the arguments in the command to be executed. In the second variant, the programmer does not intend for the command to be accessible to any untrusted party, but the programmer probably has not accounted for alternate ways in which malicious attackers can provide input.