Vulnerability Name:

CVE-2018-0306 (CCN-145177)

Assigned:2017-11-27
Published:2018-06-20
Updated:2020-09-04
Summary:A vulnerability in the CLI parser of Cisco NX-OS Software could allow an authenticated, local attacker to perform a command-injection attack on an affected device. The vulnerability is due to insufficient input validation of command arguments. An attacker could exploit this vulnerability by injecting malicious command arguments into a vulnerable CLI command. A successful exploit could allow the attacker to execute arbitrary commands with root privileges on the affected device.
Note: This vulnerability requires that any feature license is uploaded to the device. The vulnerability does not require that the license be used. This vulnerability affects MDS 9000 Series Multilayer Switches, Nexus 1000V Series Switches, Nexus 1100 Series Cloud Services Platforms, Nexus 2000 Series Fabric Extenders, Nexus 3000 Series Switches, Nexus 3500 Platform Switches, Nexus 3600 Platform Switches, Nexus 5500 Platform Switches, Nexus 5600 Platform Switches, Nexus 6000 Series Switches, Nexus 7000 Series Switches, Nexus 7700 Series Switches, Nexus 9000 Series Switches in standalone NX-OS mode, Nexus 9500 R-Series Line Cards and Fabric Modules. Cisco Bug IDs: CSCve51693, CSCve91634, CSCve91659, CSCve91663.
CVSS v3 Severity:7.8 High (CVSS v3.1 Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H)
6.8 Medium (Temporal CVSS v3.1 Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C)
Exploitability Metrics:Attack Vector (AV): Local
Attack Complexity (AC): Low
Privileges Required (PR): Low
User Interaction (UI): None
Scope:Scope (S): Unchanged
Impact Metrics:Confidentiality (C): High
Integrity (I): High
Availibility (A): High
7.8 High (CCN CVSS v3.1 Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H)
6.8 Medium (CCN Temporal CVSS v3.1 Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C)
Exploitability Metrics:Attack Vector (AV): Local
Attack Complexity (AC): Low
Privileges Required (PR): Low
User Interaction (UI): None
Scope:Scope (S): Unchanged
Impact Metrics:Confidentiality (C): High
Integrity (I): High
Availibility (A): High
CVSS v2 Severity:7.2 High (CVSS v2 Vector: AV:L/AC:L/Au:N/C:C/I:C/A:C)
Exploitability Metrics:Access Vector (AV): Local
Access Complexity (AC): Low
Authentication (Au): None
Impact Metrics:Confidentiality (C): Complete
Integrity (I): Complete
Availibility (A): Complete
6.8 Medium (CCN CVSS v2 Vector: AV:L/AC:L/Au:S/C:C/I:C/A:C)
Exploitability Metrics:Access Vector (AV): Local
Access Complexity (AC): Low
Athentication (Au): Single_Instance
Impact Metrics:Confidentiality (C): Complete
Integrity (I): Complete
Availibility (A): Complete
Vulnerability Type:CWE-78
Vulnerability Consequences:Gain Access
References:Source: MITRE
Type: CNA
CVE-2018-0306

Source: SECTRACK
Type: Third Party Advisory, VDB Entry
1041169

Source: XF
Type: UNKNOWN
cisco-cve20180306-command-exec(145177)

Source: CCN
Type: Cisco Security Advisory cisco-sa-20180620-nx-os-cli-execution
Cisco NX-OS Software CLI Arbitrary Command Execution Vulnerability

Source: CONFIRM
Type: Vendor Advisory
https://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-20180620-nx-os-cli-execution

Vulnerable Configuration:Configuration 1:
  • cpe:/o:cisco:nx-os:*:*:*:*:*:*:*:* (Version < 7.3(3)n1(1))
  • AND
  • cpe:/h:cisco:nexus_5000:-:*:*:*:*:*:*:*
  • OR cpe:/h:cisco:nexus_5010:-:*:*:*:*:*:*:*
  • OR cpe:/h:cisco:nexus_5020:-:*:*:*:*:*:*:*
  • OR cpe:/h:cisco:nexus_5548p:-:*:*:*:*:*:*:*
  • OR cpe:/h:cisco:nexus_5548up:-:*:*:*:*:*:*:*
  • OR cpe:/h:cisco:nexus_5596t:-:*:*:*:*:*:*:*
  • OR cpe:/h:cisco:nexus_5596up:-:*:*:*:*:*:*:*
  • OR cpe:/h:cisco:nexus_56128p:-:*:*:*:*:*:*:*
  • OR cpe:/h:cisco:nexus_5624q:-:*:*:*:*:*:*:*
  • OR cpe:/h:cisco:nexus_5648q:-:*:*:*:*:*:*:*
  • OR cpe:/h:cisco:nexus_5672up:-:*:*:*:*:*:*:*
  • OR cpe:/h:cisco:nexus_5696q:-:*:*:*:*:*:*:*

  • Configuration 2:
  • cpe:/o:cisco:nx-os:8.1(0.2)s0:*:*:*:*:*:*:*
  • AND
  • cpe:/h:cisco:nexus_7000:-:*:*:*:*:*:*:*
  • OR cpe:/h:cisco:nexus_7700:-:*:*:*:*:*:*:*

  • Configuration 3:
  • cpe:/o:cisco:nx-os:8.1(0)bd(0.20):*:*:*:*:*:*:*
  • OR cpe:/o:cisco:nx-os:8.1(0.59)s0:*:*:*:*:*:*:*
  • OR cpe:/o:cisco:nx-os:8.1(1):*:*:*:*:*:*:*
  • AND
  • cpe:/h:cisco:nexus_92160yc-x:-:*:*:*:*:*:*:*
  • OR cpe:/h:cisco:nexus_92304qc:-:*:*:*:*:*:*:*
  • OR cpe:/h:cisco:nexus_9236c:-:*:*:*:*:*:*:*
  • OR cpe:/h:cisco:nexus_9272q:-:*:*:*:*:*:*:*
  • OR cpe:/h:cisco:nexus_93108tc-ex:-:*:*:*:*:*:*:*
  • OR cpe:/h:cisco:nexus_93120tx:-:*:*:*:*:*:*:*
  • OR cpe:/h:cisco:nexus_93128tx:-:*:*:*:*:*:*:*
  • OR cpe:/h:cisco:nexus_93180yc-ex:-:*:*:*:*:*:*:*
  • OR cpe:/h:cisco:nexus_9332pq:-:*:*:*:*:*:*:*
  • OR cpe:/h:cisco:nexus_9372px:-:*:*:*:*:*:*:*
  • OR cpe:/h:cisco:nexus_9372tx:-:*:*:*:*:*:*:*
  • OR cpe:/h:cisco:nexus_9396px:-:*:*:*:*:*:*:*
  • OR cpe:/h:cisco:nexus_9396tx:-:*:*:*:*:*:*:*
  • OR cpe:/h:cisco:nexus_9504:-:*:*:*:*:*:*:*
  • OR cpe:/h:cisco:nexus_9508:-:*:*:*:*:*:*:*
  • OR cpe:/h:cisco:nexus_9516:-:*:*:*:*:*:*:*
  • OR cpe:/h:cisco:nexus_n9k-c9508-fm-r:-:*:*:*:*:*:*:*
  • OR cpe:/h:cisco:nexus_n9k-x9636c-r:-:*:*:*:*:*:*:*
  • OR cpe:/h:cisco:nexus_n9k-x9636q-r:-:*:*:*:*:*:*:*

  • Configuration 4:
  • cpe:/o:cisco:nx-os:6.0(2)a8(3):*:*:*:*:*:*:*
  • AND
  • cpe:/h:cisco:nexus_172tq-xl:-:*:*:*:*:*:*:*
  • OR cpe:/h:cisco:nexus_3016:-:*:*:*:*:*:*:*
  • OR cpe:/h:cisco:nexus_3048:-:*:*:*:*:*:*:*
  • OR cpe:/h:cisco:nexus_3064-32t:-:*:*:*:*:*:*:*
  • OR cpe:/h:cisco:nexus_3064-t:-:*:*:*:*:*:*:*
  • OR cpe:/h:cisco:nexus_3064-x:-:*:*:*:*:*:*:*
  • OR cpe:/h:cisco:nexus_3100-v:-:*:*:*:*:*:*:*
  • OR cpe:/h:cisco:nexus_31128pq:-:*:*:*:*:*:*:*
  • OR cpe:/h:cisco:nexus_3132c-z:-:*:*:*:*:*:*:*
  • OR cpe:/h:cisco:nexus_3132q:-:*:*:*:*:*:*:*
  • OR cpe:/h:cisco:nexus_3132q-x:-:*:*:*:*:*:*:*
  • OR cpe:/h:cisco:nexus_3132q-xl:-:*:*:*:*:*:*:*
  • OR cpe:/h:cisco:nexus_3164q:-:*:*:*:*:*:*:*
  • OR cpe:/h:cisco:nexus_3172pq:-:*:*:*:*:*:*:*
  • OR cpe:/h:cisco:nexus_3172pq-xl:-:*:*:*:*:*:*:*
  • OR cpe:/h:cisco:nexus_3172tq:-:*:*:*:*:*:*:*
  • OR cpe:/h:cisco:nexus_3172tq-32t:-:*:*:*:*:*:*:*
  • OR cpe:/h:cisco:nexus_3232c:-:*:*:*:*:*:*:*
  • OR cpe:/h:cisco:nexus_3264c-e:-:*:*:*:*:*:*:*
  • OR cpe:/h:cisco:nexus_3264q:-:*:*:*:*:*:*:*
  • OR cpe:/h:cisco:nexus_34180yc:-:*:*:*:*:*:*:*
  • OR cpe:/h:cisco:nexus_3524-x:-:*:*:*:*:*:*:*
  • OR cpe:/h:cisco:nexus_3524-xl:-:*:*:*:*:*:*:*
  • OR cpe:/h:cisco:nexus_3548:-:*:*:*:*:*:*:*
  • OR cpe:/h:cisco:nexus_3548-x:-:*:*:*:*:*:*:*
  • OR cpe:/h:cisco:nexus_3548-xl:-:*:*:*:*:*:*:*
  • OR cpe:/h:cisco:nexus_3636c-r:-:*:*:*:*:*:*:*
  • OR cpe:/h:cisco:nexus_c36180yc-r:-:*:*:*:*:*:*:*

  • Configuration 5:
  • cpe:/o:cisco:nx-os:*:*:*:*:*:*:*:* (Version < 7.3(3)n1(1))
  • AND
  • cpe:/h:cisco:nexus_2148t:-:*:*:*:*:*:*:*
  • OR cpe:/h:cisco:nexus_2224tp_ge:-:*:*:*:*:*:*:*
  • OR cpe:/h:cisco:nexus_2232pp_10ge:-:*:*:*:*:*:*:*
  • OR cpe:/h:cisco:nexus_2232tm-e_10ge:-:*:*:*:*:*:*:*
  • OR cpe:/h:cisco:nexus_2232tm_10ge:-:*:*:*:*:*:*:*
  • OR cpe:/h:cisco:nexus_2248pq_10ge:-:*:*:*:*:*:*:*
  • OR cpe:/h:cisco:nexus_2248tp-e:-:*:*:*:*:*:*:*
  • OR cpe:/h:cisco:nexus_2248tp_ge:-:*:*:*:*:*:*:*

  • Configuration 6:
  • cpe:/o:cisco:nx-os:*:*:*:*:*:*:*:* (Version < 7.3(3)n1(1))
  • AND
  • cpe:/h:cisco:nexus_6001p:-:*:*:*:*:*:*:*
  • OR cpe:/h:cisco:nexus_6001t:-:*:*:*:*:*:*:*

  • Configuration 7:
  • cpe:/o:cisco:nx-os:*:*:*:*:*:*:*:* (Version < 5.2(1)sv3(3.15))
  • AND
  • cpe:/h:cisco:nexus_1000v:-:*:*:*:*:*:*:*
  • OR cpe:/h:cisco:nexus_1110-s:-:*:*:*:*:*:*:*
  • OR cpe:/h:cisco:nexus_1110-x:-:*:*:*:*:*:*:*

  • Configuration 8:
  • cpe:/o:cisco:nx-os:*:*:*:*:*:*:*:* (Version < 8.1(1a))
  • AND
  • cpe:/h:cisco:mds_9132t:-:*:*:*:*:*:*:*
  • OR cpe:/h:cisco:mds_9148:-:*:*:*:*:*:*:*
  • OR cpe:/h:cisco:mds_9148s:-:*:*:*:*:*:*:*
  • OR cpe:/h:cisco:mds_9148t:-:*:*:*:*:*:*:*
  • OR cpe:/h:cisco:mds_9222i:-:*:*:*:*:*:*:*
  • OR cpe:/h:cisco:mds_9250i:-:*:*:*:*:*:*:*
  • OR cpe:/h:cisco:mds_9396s:-:*:*:*:*:*:*:*
  • OR cpe:/h:cisco:mds_9396t:-:*:*:*:*:*:*:*
  • OR cpe:/h:cisco:mds_9506:-:*:*:*:*:*:*:*
  • OR cpe:/h:cisco:mds_9509:-:*:*:*:*:*:*:*
  • OR cpe:/h:cisco:mds_9513:-:*:*:*:*:*:*:*
  • OR cpe:/h:cisco:mds_9706:-:*:*:*:*:*:*:*
  • OR cpe:/h:cisco:mds_9710:-:*:*:*:*:*:*:*
  • OR cpe:/h:cisco:mds_9718:-:*:*:*:*:*:*:*

  • Configuration CCN 1:
  • cpe:/o:cisco:nx-os:4.0(0)n1(1a):*:*:*:*:*:*:*

  • * Denotes that component is vulnerable
    BACK
    cisco nx-os *
    cisco nexus 5000 -
    cisco nexus 5010 -
    cisco nexus 5020 -
    cisco nexus 5548p -
    cisco nexus 5548up -
    cisco nexus 5596t -
    cisco nexus 5596up -
    cisco nexus 56128p -
    cisco nexus 5624q -
    cisco nexus 5648q -
    cisco nexus 5672up -
    cisco nexus 5696q -
    cisco nx-os 8.1(0.2)s0
    cisco nexus 7000 -
    cisco nexus 7700 -
    cisco nx-os 8.1(0)bd(0.20)
    cisco nx-os 8.1(0.59)s0
    cisco nx-os 8.1(1)
    cisco nexus 92160yc-x -
    cisco nexus 92304qc -
    cisco nexus 9236c -
    cisco nexus 9272q -
    cisco nexus 93108tc-ex -
    cisco nexus 93120tx -
    cisco nexus 93128tx -
    cisco nexus 93180yc-ex -
    cisco nexus 9332pq -
    cisco nexus 9372px -
    cisco nexus 9372tx -
    cisco nexus 9396px -
    cisco nexus 9396tx -
    cisco nexus 9504 -
    cisco nexus 9508 -
    cisco nexus 9516 -
    cisco nexus n9k-c9508-fm-r -
    cisco nexus n9k-x9636c-r -
    cisco nexus n9k-x9636q-r -
    cisco nx-os 6.0(2)a8(3)
    cisco nexus 172tq-xl -
    cisco nexus 3016 -
    cisco nexus 3048 -
    cisco nexus 3064-32t -
    cisco nexus 3064-t -
    cisco nexus 3064-x -
    cisco nexus 3100-v -
    cisco nexus 31128pq -
    cisco nexus 3132c-z -
    cisco nexus 3132q -
    cisco nexus 3132q-x -
    cisco nexus 3132q-xl -
    cisco nexus 3164q -
    cisco nexus 3172pq -
    cisco nexus 3172pq-xl -
    cisco nexus 3172tq -
    cisco nexus 3172tq-32t -
    cisco nexus 3232c -
    cisco nexus 3264c-e -
    cisco nexus 3264q -
    cisco nexus 34180yc -
    cisco nexus 3524-x -
    cisco nexus 3524-xl -
    cisco nexus 3548 -
    cisco nexus 3548-x -
    cisco nexus 3548-xl -
    cisco nexus 3636c-r -
    cisco nexus c36180yc-r -
    cisco nx-os *
    cisco nexus 2148t -
    cisco nexus 2224tp ge -
    cisco nexus 2232pp 10ge -
    cisco nexus 2232tm-e 10ge -
    cisco nexus 2232tm 10ge -
    cisco nexus 2248pq 10ge -
    cisco nexus 2248tp-e -
    cisco nexus 2248tp ge -
    cisco nx-os *
    cisco nexus 6001p -
    cisco nexus 6001t -
    cisco nx-os *
    cisco nexus 1000v -
    cisco nexus 1110-s -
    cisco nexus 1110-x -
    cisco nx-os *
    cisco mds 9132t -
    cisco mds 9148 -
    cisco mds 9148s -
    cisco mds 9148t -
    cisco mds 9222i -
    cisco mds 9250i -
    cisco mds 9396s -
    cisco mds 9396t -
    cisco mds 9506 -
    cisco mds 9509 -
    cisco mds 9513 -
    cisco mds 9706 -
    cisco mds 9710 -
    cisco mds 9718 -
    cisco nx-os 4.0\(0\)n1\(1a\)