An Improper Neutralization of Special Elements vulnerability in Juniper Networks Junos OS Evolved commands allows a local, authenticated attacker with low privileges to escalate their privileges to root leading to a full compromise of the system.
The Junos OS Evolved CLI doesnt properly handle command options in some cases, allowing users which execute specific CLI commands with a crafted set of parameters to escalate their privileges to root on shell level.
This issue affects Junos OS Evolved:
All versions before 20.4R3-S7-EVO,
21.2-EVO versions before 21.2R3-S8-EVO,
21.4-EVO versions before 21.4R3-S7-EVO,
22.2-EVO versions before 22.2R3-EVO,
22.3-EVO versions before 22.3R2-EVO,
22.4-EVO versions before 22.4R2-EVO.
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_os_evolved | Juniper | * | 20.4 (excluding) |
Junos_os_evolved | Juniper | 20.4 (including) | 20.4 (including) |
Junos_os_evolved | Juniper | 20.4-r1 (including) | 20.4-r1 (including) |
Junos_os_evolved | Juniper | 20.4-r1-s1 (including) | 20.4-r1-s1 (including) |
Junos_os_evolved | Juniper | 20.4-r1-s2 (including) | 20.4-r1-s2 (including) |
Junos_os_evolved | Juniper | 20.4-r2 (including) | 20.4-r2 (including) |
Junos_os_evolved | Juniper | 20.4-r2-s1 (including) | 20.4-r2-s1 (including) |
Junos_os_evolved | Juniper | 20.4-r2-s2 (including) | 20.4-r2-s2 (including) |
Junos_os_evolved | Juniper | 20.4-r2-s3 (including) | 20.4-r2-s3 (including) |
Junos_os_evolved | Juniper | 20.4-r3 (including) | 20.4-r3 (including) |
Junos_os_evolved | Juniper | 20.4-r3-s1 (including) | 20.4-r3-s1 (including) |
Junos_os_evolved | Juniper | 20.4-r3-s2 (including) | 20.4-r3-s2 (including) |
Junos_os_evolved | Juniper | 20.4-r3-s3 (including) | 20.4-r3-s3 (including) |
Junos_os_evolved | Juniper | 20.4-r3-s4 (including) | 20.4-r3-s4 (including) |
Junos_os_evolved | Juniper | 20.4-r3-s5 (including) | 20.4-r3-s5 (including) |
Junos_os_evolved | Juniper | 20.4-r3-s6 (including) | 20.4-r3-s6 (including) |
Junos_os_evolved | Juniper | 21.2 (including) | 21.2 (including) |
Junos_os_evolved | Juniper | 21.2-r1 (including) | 21.2-r1 (including) |
Junos_os_evolved | Juniper | 21.2-r1-s1 (including) | 21.2-r1-s1 (including) |
Junos_os_evolved | Juniper | 21.2-r1-s2 (including) | 21.2-r1-s2 (including) |
Junos_os_evolved | Juniper | 21.2-r2 (including) | 21.2-r2 (including) |
Junos_os_evolved | Juniper | 21.2-r2-s1 (including) | 21.2-r2-s1 (including) |
Junos_os_evolved | Juniper | 21.2-r2-s2 (including) | 21.2-r2-s2 (including) |
Junos_os_evolved | Juniper | 21.2-r3 (including) | 21.2-r3 (including) |
Junos_os_evolved | Juniper | 21.2-r3-s1 (including) | 21.2-r3-s1 (including) |
Junos_os_evolved | Juniper | 21.2-r3-s2 (including) | 21.2-r3-s2 (including) |
Junos_os_evolved | Juniper | 21.2-r3-s3 (including) | 21.2-r3-s3 (including) |
Junos_os_evolved | Juniper | 21.2-r3-s4 (including) | 21.2-r3-s4 (including) |
Junos_os_evolved | Juniper | 21.2-r3-s5 (including) | 21.2-r3-s5 (including) |
Junos_os_evolved | Juniper | 21.2-r3-s6 (including) | 21.2-r3-s6 (including) |
Junos_os_evolved | Juniper | 21.2-r3-s7 (including) | 21.2-r3-s7 (including) |
Junos_os_evolved | Juniper | 21.4 (including) | 21.4 (including) |
Junos_os_evolved | Juniper | 21.4-r1 (including) | 21.4-r1 (including) |
Junos_os_evolved | Juniper | 21.4-r1-s1 (including) | 21.4-r1-s1 (including) |
Junos_os_evolved | Juniper | 21.4-r1-s2 (including) | 21.4-r1-s2 (including) |
Junos_os_evolved | Juniper | 21.4-r2 (including) | 21.4-r2 (including) |
Junos_os_evolved | Juniper | 21.4-r2-s1 (including) | 21.4-r2-s1 (including) |
Junos_os_evolved | Juniper | 21.4-r2-s2 (including) | 21.4-r2-s2 (including) |
Junos_os_evolved | Juniper | 21.4-r3 (including) | 21.4-r3 (including) |
Junos_os_evolved | Juniper | 21.4-r3-s1 (including) | 21.4-r3-s1 (including) |
Junos_os_evolved | Juniper | 21.4-r3-s2 (including) | 21.4-r3-s2 (including) |
Junos_os_evolved | Juniper | 21.4-r3-s3 (including) | 21.4-r3-s3 (including) |
Junos_os_evolved | Juniper | 21.4-r3-s4 (including) | 21.4-r3-s4 (including) |
Junos_os_evolved | Juniper | 21.4-r3-s5 (including) | 21.4-r3-s5 (including) |
Junos_os_evolved | Juniper | 21.4-r3-s6 (including) | 21.4-r3-s6 (including) |
Junos_os_evolved | Juniper | 22.2 (including) | 22.2 (including) |
Junos_os_evolved | Juniper | 22.2-r1 (including) | 22.2-r1 (including) |
Junos_os_evolved | Juniper | 22.2-r1-s1 (including) | 22.2-r1-s1 (including) |
Junos_os_evolved | Juniper | 22.2-r2 (including) | 22.2-r2 (including) |
Junos_os_evolved | Juniper | 22.2-r2-s2 (including) | 22.2-r2-s2 (including) |
Junos_os_evolved | Juniper | 22.3 (including) | 22.3 (including) |
Junos_os_evolved | Juniper | 22.3-r1 (including) | 22.3-r1 (including) |
Junos_os_evolved | Juniper | 22.3-r1-s1 (including) | 22.3-r1-s1 (including) |
Junos_os_evolved | Juniper | 22.3-r1-s2 (including) | 22.3-r1-s2 (including) |
Junos_os_evolved | Juniper | 22.4 (including) | 22.4 (including) |
Junos_os_evolved | Juniper | 22.4-r1 (including) | 22.4-r1 (including) |
Junos_os_evolved | Juniper | 22.4-r1-s1 (including) | 22.4-r1-s1 (including) |
Junos_os_evolved | Juniper | 22.4-r1-s2 (including) | 22.4-r1-s2 (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.