Cisco NX-OS CLI Command Injection
CVE-2024-20399 is an authenticated OS command-injection vulnerability in the Cisco NX-OS configuration CLI. Insufficient validation of arguments passed to specific configuration commands allows an attacker with Administrator credentials to submit crafted input and execute arbitrary commands as root on the underlying operating system. Affected product families include Cisco Nexus 3000, 5500, 5600, 6000, and 7000 Series switches, Nexus 9000 Series switches in standalone NX-OS mode, and MDS 9000 Series switches running vulnerable releases. Exploitation permits escape from the NX-OS management interface into the underlying Linux environment. Velvet Ant exploited the vulnerability as a zero-day to deploy VelvetShell on compromised switches. Cisco released patches on July 1, 2024, and CISA added the vulnerability to its Known Exploited Vulnerabilities catalog on July 2, 2024.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
Successful exploitation provides root-level command execution and can compromise the confidentiality, integrity, and availability of the affected device. Attackers can install backdoors and use compromised switches for persistent remote access, file transfers, command execution, and network tunneling or proxying. Nexus 3000 Series switches, Nexus 7000 Series switches running NX-OS 8.1(1) or later, and Nexus 9000 Series switches in standalone NX-OS mode already permit administrators to access the underlying operating system through the bash-shell feature; exploitation therefore grants no additional privileges on these platforms. It can nevertheless enable OS command execution without enabling bash-shell or generating the syslog event associated with invoking that shell, although a configuration-change syslog event still occurs.
If you can’t patch tonight, do this now.
No workaround is available. Until upgrades are completed, restrict and monitor Administrator-level CLI access and access to affected configuration commands. Monitor administrative accounts, including network-admin and vdc-admin roles, rotate administrative credentials as appropriate, and investigate unexpected configuration changes and associated syslog events. These compensating controls do not eliminate the vulnerability.
Patch, then assume compromise.
Upgrade affected devices to a Cisco NX-OS release that fixes CVE-2024-20399. Use Cisco Software Checker to determine whether each platform and installed release is vulnerable and identify its First Fixed or Combined First Fixed release. Select the appropriate fixed release for the platform; specific fixed-version numbers are not available here.
No validated public exploits yet. Hidden: 1 rejected by Mallory's analysis as not a working exploit.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
15 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.