A vulnerability in the CLI command-parsing code of the Cisco StarOS operating system for Cisco ASR 5000 Series 11.0 through 21.0, 5500 Series, and 5700 Series devices and Cisco Virtualized Packet Core (VPC) Software could allow an authenticated, local attacker to break from the StarOS CLI of an affected system and execute arbitrary shell commands as a Linux root user on the system, aka Command Injection. The vulnerability exists because the affected operating system does not sufficiently sanitize commands before inserting them into Linux shell commands. An attacker could exploit this vulnerability by submitting a crafted CLI command for execution in a Linux shell command as a root user. Cisco Bug IDs: CSCvc69329, CSCvc72930.
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 |
---|---|---|---|
Staros | Cisco | 11.0_base (including) | 11.0_base (including) |
Staros | Cisco | 12.0.0 (including) | 12.0.0 (including) |
Staros | Cisco | 12.1_base (including) | 12.1_base (including) |
Staros | Cisco | 12.2(300) (including) | 12.2(300) (including) |
Staros | Cisco | 12.2_base (including) | 12.2_base (including) |
Staros | Cisco | 14.0(600) (including) | 14.0(600) (including) |
Staros | Cisco | 14.0.0 (including) | 14.0.0 (including) |
Staros | Cisco | 15.0(912) (including) | 15.0(912) (including) |
Staros | Cisco | 15.0(935) (including) | 15.0(935) (including) |
Staros | Cisco | 15.0(938) (including) | 15.0(938) (including) |
Staros | Cisco | 15.0_base (including) | 15.0_base (including) |
Staros | Cisco | 16.0(900) (including) | 16.0(900) (including) |
Staros | Cisco | 16.0.0 (including) | 16.0.0 (including) |
Staros | Cisco | 16.1.0 (including) | 16.1.0 (including) |
Staros | Cisco | 16.1.1 (including) | 16.1.1 (including) |
Staros | Cisco | 16.1.2 (including) | 16.1.2 (including) |
Staros | Cisco | 16.5.0 (including) | 16.5.0 (including) |
Staros | Cisco | 16.5.2 (including) | 16.5.2 (including) |
Staros | Cisco | 17.2.0 (including) | 17.2.0 (including) |
Staros | Cisco | 17.2.0.59184 (including) | 17.2.0.59184 (including) |
Staros | Cisco | 17.3.0 (including) | 17.3.0 (including) |
Staros | Cisco | 17.3.1 (including) | 17.3.1 (including) |
Staros | Cisco | 17.3_base (including) | 17.3_base (including) |
Staros | Cisco | 17.7.0 (including) | 17.7.0 (including) |
Staros | Cisco | 18.0.0 (including) | 18.0.0 (including) |
Staros | Cisco | 18.0.0.57828 (including) | 18.0.0.57828 (including) |
Staros | Cisco | 18.0.0.59167 (including) | 18.0.0.59167 (including) |
Staros | Cisco | 18.0.0.59211 (including) | 18.0.0.59211 (including) |
Staros | Cisco | 18.0.l0.59219 (including) | 18.0.l0.59219 (including) |
Staros | Cisco | 18.1.0 (including) | 18.1.0 (including) |
Staros | Cisco | 18.1.0.59776 (including) | 18.1.0.59776 (including) |
Staros | Cisco | 18.1.0.59780 (including) | 18.1.0.59780 (including) |
Staros | Cisco | 18.1_base (including) | 18.1_base (including) |
Staros | Cisco | 18.3.0 (including) | 18.3.0 (including) |
Staros | Cisco | 18.3_base (including) | 18.3_base (including) |
Staros | Cisco | 18.4.0 (including) | 18.4.0 (including) |
Staros | Cisco | 19.0.1 (including) | 19.0.1 (including) |
Staros | Cisco | 19.0.m0.60737 (including) | 19.0.m0.60737 (including) |
Staros | Cisco | 19.0.m0.60828 (including) | 19.0.m0.60828 (including) |
Staros | Cisco | 19.0.m0.61045 (including) | 19.0.m0.61045 (including) |
Staros | Cisco | 19.1.0 (including) | 19.1.0 (including) |
Staros | Cisco | 19.1.0.61559 (including) | 19.1.0.61559 (including) |
Staros | Cisco | 19.2.0 (including) | 19.2.0 (including) |
Staros | Cisco | 19.3.0 (including) | 19.3.0 (including) |
Staros | Cisco | 20.0.0 (including) | 20.0.0 (including) |
Staros | Cisco | 20.0.1.0 (including) | 20.0.1.0 (including) |
Staros | Cisco | 20.0.1.a0 (including) | 20.0.1.a0 (including) |
Staros | Cisco | 20.0.1.v0 (including) | 20.0.1.v0 (including) |
Staros | Cisco | 20.0.2.3 (including) | 20.0.2.3 (including) |
Staros | Cisco | 20.0.2.3.65026 (including) | 20.0.2.3.65026 (including) |
Staros | Cisco | 20.0.2.v1 (including) | 20.0.2.v1 (including) |
Staros | Cisco | 20.0.m0.62842 (including) | 20.0.m0.62842 (including) |
Staros | Cisco | 20.0.m0.63229 (including) | 20.0.m0.63229 (including) |
Staros | Cisco | 20.0.v0 (including) | 20.0.v0 (including) |
Staros | Cisco | 21.0.0 (including) | 21.0.0 (including) |
Staros | Cisco | 21.0_base (including) | 21.0_base (including) |
Staros | Cisco | 21.0_m0.64246 (including) | 21.0_m0.64246 (including) |
Staros | Cisco | 21.0_m0.64702 (including) | 21.0_m0.64702 (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.