7.8
CWE
78 20
Advisory Published
Updated

CVE-2018-0306: OS Command Injection

First published: Thu Jun 21 2018(Updated: )

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.

Credit: ykramarz@cisco.com

Affected SoftwareAffected VersionHow to fix
Cisco NX-OS<7.3\(3\)n1\(1\)
Cisco Nexus 5000 Firmware
Cisco Nexus 5010
Cisco Nexus 5020
Cisco Nexus 5548P Firmware
Cisco Nexus 5548UP Firmware
Cisco Nexus 5596T Firmware
Cisco Nexus 5596UP Firmware
Cisco 56128p
Cisco Nexus 5624Q Firmware
Cisco Nexus 5648Q Firmware
Cisco Nexus 5672UP-16G
Cisco Nexus 5696Q Firmware
Cisco NX-OS=8.1\(0.2\)s0
Cisco Nexus 7000 Series Switch
Cisco Nexus 7700 Series Switch
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 Switch
Cisco Nexus 92304QC Firmware
Cisco Nexus 9236C
Cisco Nexus 9272Q Switch
Cisco Nexus
Cisco Nexus 93120TX Firmware
Cisco Nexus 93128TX
Cisco Nexus 93180YC-EX-24
Cisco Nexus 9332PQ Firmware
Cisco Nexus 9372PX-E
Cisco Nexus 9372TX Firmware
Cisco Nexus 9396PX Firmware
Cisco Nexus 9396TX Firmware
Cisco Nexus 9504 Firmware
Cisco Nexus 9508
Cisco Nexus 9516 firmware
Cisco Nexus 9000 Series Switches
Cisco x9636q-r
Cisco Nexus X9636Q-R
Cisco NX-OS=6.0\(2\)a8\(3\)
Cisco Nexus 172tq-xl
Cisco Nexus 3016Q Firmware
Cisco Nexus 3048 Firmware
Cisco Nexus 3064
Cisco Nexus 3064
Cisco Nexus 3064x
Cisco Nexus 3100V Firmware
Cisco Nexus 31128PQ
Cisco Nexus 3132C-Z Firmware
Cisco Nexus 3132Q-XL
Cisco Nexus 3132Q-X/3132Q-XL
Cisco Nexus 3132Q-XL Firmware
Cisco Nexus 3164Q Firmware
Cisco Nexus 3172PQ/PQ-XL
Cisco Nexus 3172PQ-XL Firmware
Cisco Nexus 3172TQ Firmware
Cisco Nexus 3172TQ-XL
Cisco Nexus 3232C
Cisco Nexus 3264C-E Firmware
Cisco Nexus 3264Q Firmware
Cisco Nexus 34180YC Firmware
Cisco Nexus 3524-xl
Cisco Nexus 3524-X/XL
Cisco Nexus 3548-X/XL Firmware
Cisco Nexus 3548-X/XL
Cisco Nexus 3548-X/XL
Cisco Nexus 3636C-R Firmware
Cisco Nexus 36180YC-R
Cisco Nexus 2148T FEX Switch
Cisco Nexus 2224TP FEX Switch
Cisco Nexus 2232pp fex switch
Cisco Nexus 2232TM-E 10GE
Cisco Nexus 2232TM-E 10GE
Cisco Nexus 2248PQ 10GE
Cisco Nexus 2248TP FEX Switch
Cisco Nexus 2248TP FEX Switch
Cisco Nexus 6001P Firmware
Cisco Nexus 6001T Firmware
Cisco NX-OS<5.2\(1\)sv3\(3.15\)
Cisco Nexus 1000V for Hyper-V
Cisco Nexus 1110-x
Cisco Nexus 1110-x
Cisco NX-OS<8.1\(1a\)
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 9500
Cisco MDS 9500
Cisco MDS 9513 Firmware
Cisco MDS 9706 Firmware
Cisco MDS 9710 Firmware
Cisco MDS 9718 Firmware

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of CVE-2018-0306?

    CVE-2018-0306 has a high severity level due to the potential for command injection attacks on affected Cisco NX-OS devices.

  • How do I fix CVE-2018-0306?

    To fix CVE-2018-0306, upgrade your Cisco NX-OS software to a version that is not affected by this vulnerability.

  • What devices are affected by CVE-2018-0306?

    CVE-2018-0306 affects Cisco NX-OS devices specifically running versions up to 7.3(3)n1(1) and various versions of Cisco NX-OS 8.1.

  • Can CVE-2018-0306 be exploited remotely?

    No, CVE-2018-0306 requires local authentication for exploitation, limiting risk to users with local access.

  • What type of attack can CVE-2018-0306 lead to?

    CVE-2018-0306 can lead to command injection attacks, which may allow an authenticated attacker to execute arbitrary commands on the affected device.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203