A command injection vulnerability in the license-check daemon of Juniper Networks Junos OS that may allow a locally authenticated attacker with low privileges to execute commands with root privilege. license-check is a daemon used to manage licenses in Junos OS. To update licenses, a user executes the command request system license update via the CLI. An attacker with access to this CLI command may be able to exploit the vulnerability. This issue affects Juniper Networks Junos OS: 17.3 versions prior to 17.3R3-S9; 17.4 versions prior to 17.4R2-S12, 17.4R3-S3; 18.1 versions prior to 18.1R3-S11; 18.2 versions prior to 18.2R3-S6; 18.3 versions prior to 18.3R3-S4; 18.4 versions prior to 18.4R3-S6; 19.1 versions prior to 19.1R1-S6, 19.1R2-S2, 19.1R3-S3; 19.2 versions prior to 19.2R3-S1; 19.3 versions prior to 19.3R2-S5, 19.3R3; 19.4 versions prior to 19.4R2-S2, 19.4R3; 20.1 versions prior to 20.1R1-S4, 20.1R2; 20.2 versions prior to 20.2R1-S2, 20.2R2.
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 |
---|---|---|---|
Junos | Juniper | 17.3 (including) | 17.3 (including) |
Junos | Juniper | 17.3-r1-s1 (including) | 17.3-r1-s1 (including) |
Junos | Juniper | 17.3-r2 (including) | 17.3-r2 (including) |
Junos | Juniper | 17.3-r2-s1 (including) | 17.3-r2-s1 (including) |
Junos | Juniper | 17.3-r2-s2 (including) | 17.3-r2-s2 (including) |
Junos | Juniper | 17.3-r2-s3 (including) | 17.3-r2-s3 (including) |
Junos | Juniper | 17.3-r2-s4 (including) | 17.3-r2-s4 (including) |
Junos | Juniper | 17.3-r2-s5 (including) | 17.3-r2-s5 (including) |
Junos | Juniper | 17.3-r3 (including) | 17.3-r3 (including) |
Junos | Juniper | 17.3-r3-s1 (including) | 17.3-r3-s1 (including) |
Junos | Juniper | 17.3-r3-s2 (including) | 17.3-r3-s2 (including) |
Junos | Juniper | 17.3-r3-s3 (including) | 17.3-r3-s3 (including) |
Junos | Juniper | 17.3-r3-s4 (including) | 17.3-r3-s4 (including) |
Junos | Juniper | 17.3-r3-s7 (including) | 17.3-r3-s7 (including) |
Junos | Juniper | 17.3-r3-s8 (including) | 17.3-r3-s8 (including) |
Junos | Juniper | 17.4 (including) | 17.4 (including) |
Junos | Juniper | 17.4-r1 (including) | 17.4-r1 (including) |
Junos | Juniper | 17.4-r1-s1 (including) | 17.4-r1-s1 (including) |
Junos | Juniper | 17.4-r1-s2 (including) | 17.4-r1-s2 (including) |
Junos | Juniper | 17.4-r1-s4 (including) | 17.4-r1-s4 (including) |
Junos | Juniper | 17.4-r1-s5 (including) | 17.4-r1-s5 (including) |
Junos | Juniper | 17.4-r1-s6 (including) | 17.4-r1-s6 (including) |
Junos | Juniper | 17.4-r1-s7 (including) | 17.4-r1-s7 (including) |
Junos | Juniper | 17.4-r2 (including) | 17.4-r2 (including) |
Junos | Juniper | 17.4-r2-s1 (including) | 17.4-r2-s1 (including) |
Junos | Juniper | 17.4-r2-s10 (including) | 17.4-r2-s10 (including) |
Junos | Juniper | 17.4-r2-s11 (including) | 17.4-r2-s11 (including) |
Junos | Juniper | 17.4-r2-s2 (including) | 17.4-r2-s2 (including) |
Junos | Juniper | 17.4-r2-s3 (including) | 17.4-r2-s3 (including) |
Junos | Juniper | 17.4-r2-s4 (including) | 17.4-r2-s4 (including) |
Junos | Juniper | 17.4-r2-s5 (including) | 17.4-r2-s5 (including) |
Junos | Juniper | 17.4-r2-s6 (including) | 17.4-r2-s6 (including) |
Junos | Juniper | 17.4-r2-s7 (including) | 17.4-r2-s7 (including) |
Junos | Juniper | 18.1 (including) | 18.1 (including) |
Junos | Juniper | 18.1-r1 (including) | 18.1-r1 (including) |
Junos | Juniper | 18.1-r2 (including) | 18.1-r2 (including) |
Junos | Juniper | 18.1-r2-s1 (including) | 18.1-r2-s1 (including) |
Junos | Juniper | 18.1-r2-s2 (including) | 18.1-r2-s2 (including) |
Junos | Juniper | 18.1-r2-s4 (including) | 18.1-r2-s4 (including) |
Junos | Juniper | 18.1-r3 (including) | 18.1-r3 (including) |
Junos | Juniper | 18.1-r3-s1 (including) | 18.1-r3-s1 (including) |
Junos | Juniper | 18.1-r3-s10 (including) | 18.1-r3-s10 (including) |
Junos | Juniper | 18.1-r3-s2 (including) | 18.1-r3-s2 (including) |
Junos | Juniper | 18.1-r3-s3 (including) | 18.1-r3-s3 (including) |
Junos | Juniper | 18.1-r3-s4 (including) | 18.1-r3-s4 (including) |
Junos | Juniper | 18.1-r3-s6 (including) | 18.1-r3-s6 (including) |
Junos | Juniper | 18.1-r3-s7 (including) | 18.1-r3-s7 (including) |
Junos | Juniper | 18.1-r3-s8 (including) | 18.1-r3-s8 (including) |
Junos | Juniper | 18.1-r3-s9 (including) | 18.1-r3-s9 (including) |
Junos | Juniper | 18.2 (including) | 18.2 (including) |
Junos | Juniper | 18.2-r1 (including) | 18.2-r1 (including) |
Junos | Juniper | 18.2-r1-s3 (including) | 18.2-r1-s3 (including) |
Junos | Juniper | 18.2-r1-s4 (including) | 18.2-r1-s4 (including) |
Junos | Juniper | 18.2-r1-s5 (including) | 18.2-r1-s5 (including) |
Junos | Juniper | 18.2-r2 (including) | 18.2-r2 (including) |
Junos | Juniper | 18.2-r2-s1 (including) | 18.2-r2-s1 (including) |
Junos | Juniper | 18.2-r2-s2 (including) | 18.2-r2-s2 (including) |
Junos | Juniper | 18.2-r2-s3 (including) | 18.2-r2-s3 (including) |
Junos | Juniper | 18.2-r2-s4 (including) | 18.2-r2-s4 (including) |
Junos | Juniper | 18.2-r2-s5 (including) | 18.2-r2-s5 (including) |
Junos | Juniper | 18.2-r2-s6 (including) | 18.2-r2-s6 (including) |
Junos | Juniper | 18.2-r3 (including) | 18.2-r3 (including) |
Junos | Juniper | 18.2-r3-s1 (including) | 18.2-r3-s1 (including) |
Junos | Juniper | 18.2-r3-s2 (including) | 18.2-r3-s2 (including) |
Junos | Juniper | 18.2-r3-s3 (including) | 18.2-r3-s3 (including) |
Junos | Juniper | 18.2-r3-s4 (including) | 18.2-r3-s4 (including) |
Junos | Juniper | 18.2-r3-s5 (including) | 18.2-r3-s5 (including) |
Junos | Juniper | 18.3 (including) | 18.3 (including) |
Junos | Juniper | 18.3-r1 (including) | 18.3-r1 (including) |
Junos | Juniper | 18.3-r1-s1 (including) | 18.3-r1-s1 (including) |
Junos | Juniper | 18.3-r1-s2 (including) | 18.3-r1-s2 (including) |
Junos | Juniper | 18.3-r1-s3 (including) | 18.3-r1-s3 (including) |
Junos | Juniper | 18.3-r1-s5 (including) | 18.3-r1-s5 (including) |
Junos | Juniper | 18.3-r1-s6 (including) | 18.3-r1-s6 (including) |
Junos | Juniper | 18.3-r2 (including) | 18.3-r2 (including) |
Junos | Juniper | 18.3-r2-s1 (including) | 18.3-r2-s1 (including) |
Junos | Juniper | 18.3-r2-s2 (including) | 18.3-r2-s2 (including) |
Junos | Juniper | 18.3-r2-s3 (including) | 18.3-r2-s3 (including) |
Junos | Juniper | 18.3-r2-s4 (including) | 18.3-r2-s4 (including) |
Junos | Juniper | 18.3-r3 (including) | 18.3-r3 (including) |
Junos | Juniper | 18.3-r3-s1 (including) | 18.3-r3-s1 (including) |
Junos | Juniper | 18.3-r3-s2 (including) | 18.3-r3-s2 (including) |
Junos | Juniper | 18.3-r3-s3 (including) | 18.3-r3-s3 (including) |
Junos | Juniper | 18.4 (including) | 18.4 (including) |
Junos | Juniper | 18.4-r1 (including) | 18.4-r1 (including) |
Junos | Juniper | 18.4-r1-s1 (including) | 18.4-r1-s1 (including) |
Junos | Juniper | 18.4-r1-s2 (including) | 18.4-r1-s2 (including) |
Junos | Juniper | 18.4-r1-s5 (including) | 18.4-r1-s5 (including) |
Junos | Juniper | 18.4-r1-s6 (including) | 18.4-r1-s6 (including) |
Junos | Juniper | 18.4-r2 (including) | 18.4-r2 (including) |
Junos | Juniper | 18.4-r2-s1 (including) | 18.4-r2-s1 (including) |
Junos | Juniper | 18.4-r2-s2 (including) | 18.4-r2-s2 (including) |
Junos | Juniper | 18.4-r2-s3 (including) | 18.4-r2-s3 (including) |
Junos | Juniper | 18.4-r2-s4 (including) | 18.4-r2-s4 (including) |
Junos | Juniper | 18.4-r3 (including) | 18.4-r3 (including) |
Junos | Juniper | 18.4-r3-s1 (including) | 18.4-r3-s1 (including) |
Junos | Juniper | 18.4-r3-s2 (including) | 18.4-r3-s2 (including) |
Junos | Juniper | 18.4-r3-s3 (including) | 18.4-r3-s3 (including) |
Junos | Juniper | 18.4-r3-s4 (including) | 18.4-r3-s4 (including) |
Junos | Juniper | 18.4-r3-s5 (including) | 18.4-r3-s5 (including) |
Junos | Juniper | 19.1 (including) | 19.1 (including) |
Junos | Juniper | 19.1-r1 (including) | 19.1-r1 (including) |
Junos | Juniper | 19.1-r1-s1 (including) | 19.1-r1-s1 (including) |
Junos | Juniper | 19.1-r1-s2 (including) | 19.1-r1-s2 (including) |
Junos | Juniper | 19.1-r1-s3 (including) | 19.1-r1-s3 (including) |
Junos | Juniper | 19.1-r1-s4 (including) | 19.1-r1-s4 (including) |
Junos | Juniper | 19.1-r1-s5 (including) | 19.1-r1-s5 (including) |
Junos | Juniper | 19.1-r2 (including) | 19.1-r2 (including) |
Junos | Juniper | 19.1-r2-s1 (including) | 19.1-r2-s1 (including) |
Junos | Juniper | 19.1-r3 (including) | 19.1-r3 (including) |
Junos | Juniper | 19.1-r3-s1 (including) | 19.1-r3-s1 (including) |
Junos | Juniper | 19.1-r3-s2 (including) | 19.1-r3-s2 (including) |
Junos | Juniper | 19.2 (including) | 19.2 (including) |
Junos | Juniper | 19.2-r1 (including) | 19.2-r1 (including) |
Junos | Juniper | 19.2-r1-s1 (including) | 19.2-r1-s1 (including) |
Junos | Juniper | 19.2-r1-s2 (including) | 19.2-r1-s2 (including) |
Junos | Juniper | 19.2-r1-s3 (including) | 19.2-r1-s3 (including) |
Junos | Juniper | 19.2-r1-s4 (including) | 19.2-r1-s4 (including) |
Junos | Juniper | 19.2-r1-s5 (including) | 19.2-r1-s5 (including) |
Junos | Juniper | 19.2-r2 (including) | 19.2-r2 (including) |
Junos | Juniper | 19.2-r2-s1 (including) | 19.2-r2-s1 (including) |
Junos | Juniper | 19.2-r3 (including) | 19.2-r3 (including) |
Junos | Juniper | 19.3 (including) | 19.3 (including) |
Junos | Juniper | 19.3-r1 (including) | 19.3-r1 (including) |
Junos | Juniper | 19.3-r1-s1 (including) | 19.3-r1-s1 (including) |
Junos | Juniper | 19.3-r2 (including) | 19.3-r2 (including) |
Junos | Juniper | 19.3-r2-s1 (including) | 19.3-r2-s1 (including) |
Junos | Juniper | 19.3-r2-s2 (including) | 19.3-r2-s2 (including) |
Junos | Juniper | 19.3-r2-s3 (including) | 19.3-r2-s3 (including) |
Junos | Juniper | 19.3-r2-s4 (including) | 19.3-r2-s4 (including) |
Junos | Juniper | 19.4-r1 (including) | 19.4-r1 (including) |
Junos | Juniper | 19.4-r1-s1 (including) | 19.4-r1-s1 (including) |
Junos | Juniper | 19.4-r1-s2 (including) | 19.4-r1-s2 (including) |
Junos | Juniper | 19.4-r2 (including) | 19.4-r2 (including) |
Junos | Juniper | 19.4-r2-s1 (including) | 19.4-r2-s1 (including) |
Junos | Juniper | 20.1-r1 (including) | 20.1-r1 (including) |
Junos | Juniper | 20.1-r1-s1 (including) | 20.1-r1-s1 (including) |
Junos | Juniper | 20.1-r1-s2 (including) | 20.1-r1-s2 (including) |
Junos | Juniper | 20.1-r1-s3 (including) | 20.1-r1-s3 (including) |
Junos | Juniper | 20.2-r1 (including) | 20.2-r1 (including) |
Junos | Juniper | 20.2-r1-s1 (including) | 20.2-r1-s1 (including) |
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.